Skip to content

Commit

Permalink
Merge pull request #178 from nycdotnet/NYCDotNet-Work-2014-11-20
Browse files Browse the repository at this point in the history
Fix for #177
  • Loading branch information
nycdotnet committed Dec 5, 2014
2 parents ee995fb + b770436 commit 066ebfb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions tasks/ts.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions tasks/ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 066ebfb

Please sign in to comment.