Comparing version 1.2.1 to 1.2.2
@@ -90,2 +90,5 @@ "use strict"; | ||
var emitResult = program.emit(); | ||
if (configParseResult.options.noEmitOnError) { | ||
console.warn('You have `noEmitOnError` enabled, if any error occurs TypeScript will not generate any JavaScript output files even if `tsc-silent` exits with 0.'); | ||
} | ||
process.exit(assertDiagnostics(ts.getPreEmitDiagnostics(program).concat(emitResult.diagnostics), compilerHost)); | ||
@@ -92,0 +95,0 @@ } |
{ | ||
"name": "tsc-silent", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "tsc with --supress", | ||
"main": "dist/index.js", | ||
"main": "dist/tsc-silent.js", | ||
"scripts": { | ||
"build": "rm -rf dist && tsc", | ||
"version": "yarn build && git add .", | ||
"prepublishOnly": "yarn build", | ||
"postversion": "git push && git push --tags" | ||
"prepublishOnly": "yarn build" | ||
}, | ||
@@ -12,0 +11,0 @@ "bin": { |
@@ -127,2 +127,7 @@ // tslint:disable no-console | ||
const emitResult = program.emit(); | ||
if (configParseResult.options.noEmitOnError) { | ||
console.warn('You have `noEmitOnError` enabled, if any error occurs TypeScript will not generate any JavaScript output files even if `tsc-silent` exits with 0.'); | ||
} | ||
process.exit( | ||
@@ -129,0 +134,0 @@ assertDiagnostics(ts.getPreEmitDiagnostics(program).concat(emitResult.diagnostics), compilerHost), |
23056
487