Skip to content

Commit ae1e48d

Browse files
Merge 3f9976a into ce52e5c
2 parents ce52e5c + 3f9976a commit ae1e48d

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎tools/build-scripts/typecheck.mjs‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ const __dirname = path.dirname( fileURLToPath( import.meta.url ) );
77
const ROOT_DIR = path.resolve( __dirname, '../..' );
88

99
/*
10-
* Same failure hint as the build, so a red CI run points at the fix.
1110
* `--pretty` keeps related info (e.g. the tsconfig behind a bad `types`
1211
* entry) that tsc drops when stdout is not a TTY, as in CI.
1312
*/
@@ -21,8 +20,13 @@ const result = spawn.sync(
2120
);
2221

2322
if ( result.status !== 0 ) {
23+
/*
24+
* Same failure hint as the build, so a red CI run points at the fix.
25+
* Only `--verbose` names the project behind a file-less diagnostic.
26+
*/
2427
console.error(
25-
'\n❌ Type check failed. Try cleaning up first: `npm run clean:package-types`'
28+
'\n❌ Type check failed. Try cleaning up first: `npm run clean:package-types`' +
29+
'\n Run `npm run typecheck -- --verbose` to see which project an error without a file came from.'
2630
);
2731
}
2832
process.exit( result.status ?? 1 );

0 commit comments

Comments
 (0)