- Added support for TS 2.9
- Add source maps to
.d.ts
files (by @michaelaird in #575) - Crash the build on error (#295), aligns with new behavior of gulp
- Updated dependencies
The behavior of compiler errors has changed. Outside of watch mode, the process will exit when a compiler error occurs. In watch mode, the process will continue to handle consequent builds. The current behavior is as follows:
- gulp-typescript does not add a noop event listener to the
error
event. Errors will thus crash the build. - gulp-typescript emits only a single error. It appeared that the new watch behavior of gulp 4 only catches the first error. We thus emit a single error at the end of the compilation. To get notified of each separate error, one should use a reporter.
- gulp 4 does not crash in watch mode.
To prevent crashing the build, even outside of watch mode, you can add .on('error', () => {})
to your stream, just after .pipe(tsProject())
.
You can install the new version with npm install gulp-typescript@5.0.0-alpha.1