diff --git a/CHANGELOG.md b/CHANGELOG.md index cb94cf8d..0e6920af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,8 @@ * FEAT: support watching multiple DIRS. (https://github.com/grunt-ts/grunt-ts/pull/155/) * CHORE: Use lodash instead of underscore (https://github.com/TypeStrong/grunt-ts/pull/161) * DOCS: More sample config for gruntfile (https://github.com/TypeStrong/grunt-ts/pull/166) +* FEAT: support for `files` in gruntfile (https://github.com/TypeStrong/grunt-ts/pull/171) +* FIX: missing tsc.js will now fail the build step (#177) ## v1.12.0 * ENANCEMENT: Transforms are run even when the compile option is false diff --git a/tasks/ts.js b/tasks/ts.js index 2aa84ba8..cedbf478 100644 --- a/tasks/ts.js +++ b/tasks/ts.js @@ -272,6 +272,11 @@ function pluginFn(grunt) { return false; } + if (result.code === 8) { + grunt.log.error('Error: Node was unable to run tsc. Possibly it could not be found?'.red); + return false; + } + var isError = (result.code === 1); // If the compilation errors contain only type errors, JS files are still diff --git a/tasks/ts.ts b/tasks/ts.ts index 4f2d6e6e..66d6bc3c 100644 --- a/tasks/ts.ts +++ b/tasks/ts.ts @@ -297,6 +297,11 @@ function pluginFn(grunt: IGrunt) { return false; } + if (result.code === 8) { + grunt.log.error('Error: Node was unable to run tsc. Possibly it could not be found?'.red); + return false; + } + var isError = (result.code === 1); // If the compilation errors contain only type errors, JS files are still