Skip to content

Commit

Permalink
fix: exit with tsc's status
Browse files Browse the repository at this point in the history
* Exit tsc-files with tsc's status

* Add empty line

Co-authored-by: Gustavo <[email protected]>
  • Loading branch information
MrOrz and gustavopch authored Mar 19, 2020
1 parent 7fb32fa commit 6c8ad03
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,13 @@ 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' },
)

// Delete temp config file
fs.unlinkSync(tmpTsconfigPath)

process.exit(status);

0 comments on commit 6c8ad03

Please sign in to comment.