diff --git a/lib/index.js b/lib/index.js index 123a6e6..7ce18f7 100755 --- a/lib/index.js +++ b/lib/index.js @@ -32,7 +32,7 @@ const tmpTsconfig = { fs.writeFileSync(tmpTsconfigPath, JSON.stringify(tmpTsconfig, null, 2)) // Type-check our files -spawnSync( +const { status } = spawnSync( resolveFromModule('typescript', 'bin/tsc'), ['-p', tmpTsconfigPath, '--noEmit'], { stdio: 'inherit' }, @@ -40,3 +40,5 @@ spawnSync( // Delete temp config file fs.unlinkSync(tmpTsconfigPath) + +process.exit(status);