Skip to content

Commit d750e1f

Browse files
committed
chore(pm): name typecheck:root as the one non-composite zero-file family
Claude-Session: https://claude.ai/code/session_01ENjVvxdwZxosWSS4Fqazu1 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 24f2191 commit d750e1f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎scripts/pm/dispatch-gates.self-test.mjs‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1496,7 +1496,12 @@ export function selfTest({ tier = 'full' } = {}) {
14961496
// resolve.
14971497
const rootScriptsMap = JSON.parse(readFileSync(nodePath.join(ROOT, 'package.json'), 'utf8')).scripts ?? {};
14981498
const zeroFile = tsLiveFamilies.filter(([, e]) => (e.files ?? []).length === 0);
1499+
// `typecheck:root` is the one other zero-file family, by construction: it is a
1500+
// tsc program over the root config, not a script file, and the cards it owes
1501+
// are named by the root-program change kind (`root-ts-program`), never by a
1502+
// path read out of a script.
14991503
const unexplained = zeroFile
1504+
.filter(([check]) => check !== 'typecheck:root')
15001505
.map(([check]) => [check, rootScriptsMap[check] ?? ''])
15011506
.filter(([, cmd]) => !/\bpnpm\b[^&|]*?(?:--filter|--recursive|-r)\b[^&|]*?\brun\b/.test(cmd))
15021507
.map(([check, cmd]) => `${check} (${cmd || 'no root script'})`);

0 commit comments

Comments
 (0)