mirror of
https://github.com/nestriness/nestri.git
synced 2026-09-19 17:25:19 +03:00
style: apply the formatter across the tree
The formatter had never been run over these files, so `oxfmt` on a couple of touched files rewrote two dozen others and buried the real change. Running it everywhere once makes the next diff mean something. No behaviour changes: import ordering, line joining, and reindented JSON in the generated migration snapshots. Both test suites and both typechecks give the same answers as before, including the two type errors this does not fix.
This commit is contained in:
@@ -24,9 +24,9 @@ const out = path.join(here, '..', 'src', 'migrations.generated.ts');
|
||||
|
||||
type JournalEntry = { idx: number; when: number; tag: string; breakpoints: boolean };
|
||||
|
||||
const journal = JSON.parse(
|
||||
fs.readFileSync(path.join(folder, 'meta', '_journal.json'), 'utf8')
|
||||
) as { entries: JournalEntry[] };
|
||||
const journal = JSON.parse(fs.readFileSync(path.join(folder, 'meta', '_journal.json'), 'utf8')) as {
|
||||
entries: JournalEntry[];
|
||||
};
|
||||
|
||||
// Deliberately identical to drizzle-orm's own `readMigrationFiles`: the same
|
||||
// `--> statement-breakpoint` split, the same sha256 over the whole file, the
|
||||
|
||||
Reference in New Issue
Block a user