Migration: drop the /proc scan for servers from before the lock, and the fixture generator
The migration only matters for data from before libraries, and the README says to stop the server first; the lock check stays. make.ts rebuilt the committed fixtures from two old commits and will not be run again (the test's header names the commits). isDir was used by nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
1 parent
d8654fdd19
commit
9c506cd660
5 files changed
+18
-326
No files matched your search
+1
-4
@@ -20,7 +20,7 @@
|
||||
* layout from before (`<data>/library/main.loro`) is not opened: `npm run migrate` brings it over
|
||||
* (migrateLibraries.ts).
|
||||
*/
|
||||
import { existsSync, mkdirSync, readFileSync, readdirSync, renameSync, statSync } from "node:fs";
|
||||
import { existsSync, mkdirSync, readFileSync, readdirSync, renameSync } from "node:fs";
|
||||
import { join } from "node:path";
|
||||
import { LIBRARY_ID } from "../src/core/address";
|
||||
import { FormatError } from "../src/core/format";
|
||||
@@ -270,6 +270,3 @@ function cleanTitle(title: unknown): string {
|
||||
if (t.length > 200) throw new HttpError(400, "a library's title is at most 200 characters");
|
||||
return t;
|
||||
}
|
||||
|
||||
/** Whether a path is a directory (for the migration's checks). */
|
||||
export const isDir = (p: string) => existsSync(p) && statSync(p).isDirectory();
|
||||
Reference in new issue
Block a user