From 44955b760066cdfe4a10ebb183e2d9ffddbb3df4 Mon Sep 17 00:00:00 2001 From: Tobias Koppers Date: Thu, 20 Sep 2018 18:00:11 +0200 Subject: [PATCH] emit exit code only in lint mode --- tooling/compile-to-definitions.js | 2 +- tooling/format-schemas.js | 2 +- tooling/inherit-types.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tooling/compile-to-definitions.js b/tooling/compile-to-definitions.js index 994293b1e..a19aca0c5 100644 --- a/tooling/compile-to-definitions.js +++ b/tooling/compile-to-definitions.js @@ -65,8 +65,8 @@ const makeDefinitionsForSchema = absSchemaPath => { "/" )}.d.ts need to be updated` ); + process.exitCode = 1; } - process.exitCode = 1; } }, err => { diff --git a/tooling/format-schemas.js b/tooling/format-schemas.js index ab71d3162..803acd5a1 100644 --- a/tooling/format-schemas.js +++ b/tooling/format-schemas.js @@ -124,8 +124,8 @@ const formatSchema = schemaPath => { console.error( `schemas/${basename.replace(/\\/g, "/")} need to be updated` ); + process.exitCode = 1; } - process.exitCode = 1; } }); }; diff --git a/tooling/inherit-types.js b/tooling/inherit-types.js index 79bcdcdd0..03963b5a4 100644 --- a/tooling/inherit-types.js +++ b/tooling/inherit-types.js @@ -137,8 +137,8 @@ for (const sourceFile of program.getSourceFiles()) { ); } console.log(); + process.exitCode = 1; } - process.exitCode = 1; } } }