Skip to content

Commit 6c8ad03

Browse files
MrOrzgustavopch
andauthored
fix: exit with tsc's status
* Exit tsc-files with tsc's status * Add empty line Co-authored-by: Gustavo <gustavopch@users.noreply.github.com>
1 parent 7fb32fa commit 6c8ad03

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ const tmpTsconfig = {
3232
fs.writeFileSync(tmpTsconfigPath, JSON.stringify(tmpTsconfig, null, 2))
3333

3434
// Type-check our files
35-
spawnSync(
35+
const { status } = spawnSync(
3636
resolveFromModule('typescript', 'bin/tsc'),
3737
['-p', tmpTsconfigPath, '--noEmit'],
3838
{ stdio: 'inherit' },
3939
)
4040

4141
// Delete temp config file
4242
fs.unlinkSync(tmpTsconfigPath)
43+
44+
process.exit(status);

0 commit comments

Comments
 (0)