2026-05-04 13:49:48 -06:00
|
|
|
import path from "node:path";
|
|
|
|
|
import { fileURLToPath } from "node:url";
|
2026-06-03 16:40:33 -07:00
|
|
|
import { runFileSizeCheck } from "../../scripts/check-file-sizes-core.mjs";
|
2026-05-04 13:49:48 -06:00
|
|
|
|
|
|
|
|
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
|
|
|
const projectRoot = path.resolve(__dirname, "..");
|
|
|
|
|
|
2026-06-03 16:40:33 -07:00
|
|
|
const MAX_LINES = 1000;
|
|
|
|
|
|
2026-05-04 13:49:48 -06:00
|
|
|
const rules = [
|
|
|
|
|
{
|
|
|
|
|
root: "src/app",
|
|
|
|
|
extensions: new Set([".ts", ".tsx"]),
|
2026-06-03 16:40:33 -07:00
|
|
|
maxLines: MAX_LINES,
|
2026-05-04 13:49:48 -06:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
root: "src/features",
|
|
|
|
|
extensions: new Set([".ts", ".tsx"]),
|
2026-06-03 16:40:33 -07:00
|
|
|
maxLines: MAX_LINES,
|
2026-05-04 13:49:48 -06:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
root: "src/shared/api",
|
|
|
|
|
extensions: new Set([".ts", ".tsx"]),
|
2026-06-03 16:40:33 -07:00
|
|
|
maxLines: MAX_LINES,
|
2026-05-04 13:49:48 -06:00
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
2026-06-03 16:40:33 -07:00
|
|
|
await runFileSizeCheck({
|
|
|
|
|
projectRoot,
|
|
|
|
|
rules,
|
|
|
|
|
label: "Web",
|
|
|
|
|
});
|