refactor(core,packaging): relocate embedded assets and binary runtime to src/packaging and enforce core whitelist

This commit is contained in:
gitea committed 2026-09-30 00:29:20 +08:00
1 parent 3864f0ffd0
commit 27c86e052a
10 files changed
+20 -5

No files matched your search

+15
View File
@@ -113,4 +113,19 @@ describe("Architecture Layering Boundaries", () => {
expect(violations).toEqual([]);
});
test("src/core/ must only contain whitelisted infrastructure modules", () => {
const allowedTopLevel = new Set([
"README.core.md",
"auth",
"cache",
"config",
"db",
"errors.ts",
"http",
]);
const entries = readdirSync(join(SRC_ROOT, "core"));
const unexpected = entries.filter((entry) => !allowedTopLevel.has(entry));
expect(unexpected).toEqual([]);
});
});