Format authored monorepo code with pinned language formatters
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import fs from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import {contentDigest} from "../capability-model/evolution.js";
|
||||
import {validateMigrationCatalog, type MigrationCatalog} from "../capability-model/migrations.js";
|
||||
import {applyStructure, planStructure} from "./structural-plan.js";
|
||||
import { contentDigest } from "../capability-model/evolution.js";
|
||||
import { validateMigrationCatalog, type MigrationCatalog } from "../capability-model/migrations.js";
|
||||
import { applyStructure, planStructure } from "./structural-plan.js";
|
||||
|
||||
/** Explicitly acknowledge edited migration code. This does not change retained
|
||||
* contracts or grant activation approval; the immutable checker verifies it. */
|
||||
@@ -17,7 +17,11 @@ export async function sealMigrations(directory: string) {
|
||||
migration.implementation.digest = contentDigest(await fs.readFile(implementation, "utf8"));
|
||||
}
|
||||
validateMigrationCatalog(catalog);
|
||||
return applyStructure(await planStructure(root, {kind: "package", validation: "syntax", files: [
|
||||
{file, expected: before, replace: JSON.stringify(catalog, null, 2) + "\n"},
|
||||
]}));
|
||||
return applyStructure(
|
||||
await planStructure(root, {
|
||||
kind: "package",
|
||||
validation: "syntax",
|
||||
files: [{ file, expected: before, replace: JSON.stringify(catalog, null, 2) + "\n" }],
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user