first commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
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");
|
||||
Reference in New Issue
Block a user