Skip to content

Commit b734f45

Browse files
fix: also log cache for runTSCProd
1 parent dea4c18 commit b734f45

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎packages/dev-lib/src/build.util.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ export async function runTSCProd(args: string[] = []): Promise<void> {
5858
const tsconfigPath = [`./tsconfig.prod.json`].find(p => fs2.pathExists(p)) || 'tsconfig.json'
5959

6060
const tscPath = findPackageBinPath('typescript', 'tsc')
61+
const cacheLocation = `node_modules/.cache/src.tsbuildinfo`
62+
const cacheFound = existsSync(cacheLocation)
63+
console.log(grey(`tsc src cache found: ${cacheFound}`))
6164

6265
await exec2.spawnAsync(tscPath, {
6366
args: ['-P', tsconfigPath, '--noEmit', 'false', '--noCheck', ...args],

0 commit comments

Comments
 (0)