13 lines
401 B
JavaScript
13 lines
401 B
JavaScript
import { promises as fs } from "node:fs";
|
|
import path from "node:path";
|
|
|
|
const target = path.resolve("packages/features/builder/src/domain.ts");
|
|
const content = await fs.readFile(target, "utf8");
|
|
|
|
if (!content.includes("Readonly<") || !content.includes("Object.freeze")) {
|
|
console.error("Immutability check failed in builder domain");
|
|
process.exit(1);
|
|
}
|
|
|
|
console.log("Immutability check passed");
|