-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheck.mjs
More file actions
32 lines (29 loc) · 845 Bytes
/
Copy pathcheck.mjs
File metadata and controls
32 lines (29 loc) · 845 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env node
import { spawnSync } from "node:child_process";
const steps = [
["scripts/check-ascii.mjs"],
["scripts/check-public-surface.mjs"],
["scripts/check-public-surface-contracts.mjs"],
["scripts/check-package-integrity.mjs"],
["scripts/check-installers.mjs"],
["scripts/check-runtime-contracts.mjs"],
["scripts/check-map-interactions.mjs"],
["scripts/check-adversarial.mjs"],
["scripts/check-evals.mjs"],
["scripts/demo.mjs"],
["scripts/check-render-output.mjs"],
["scripts/check-ascii.mjs"],
];
for (const args of steps) {
const result = spawnSync(process.execPath, args, {
stdio: "inherit",
shell: false,
});
if (result.error) {
console.error(`check failed - ${result.error.message}`);
process.exit(1);
}
if (result.status !== 0) {
process.exit(result.status ?? 1);
}
}