Skip to content

Releases: ivogabe/gulp-typescript

v5.0.1 - Resolve @types in node_modules above current directory

13 Mar 09:14
Compare
Choose a tag to compare

v5.0.0 - Custom transforms & various fixes

02 Dec 20:41
Compare
Choose a tag to compare

Custom transforms

We added support for custom transformers. We added a similar API as awesome-typescript-loader.

You can pass aditional transforms to the compiler pipeline. We aligned with the interface of awesome-typescript-loader. You can specify transforms by setting the getCustomTransformers option.

The option expects a string, pointing at a module that exposes the transforms, or a function that returns the transforms. Its type is getCustomTransformers: (string | ((program: ts.Program) => ts.CustomTransformers | undefined)).

const styledComponentsTransformer = require('typescript-plugin-styled-components').default;

const project = ts.createProject('test/customTransformers/tsconfig.json', {
    getCustomTransformers: () => ({
        before: [
            styledComponentsTransformer(),
        ]
    });
});

Crash the build on errors

We now crash the build on errors. This is desired for CI environments. However, this is not desired for watch mode. Gulp 4 will automatically catch errors in watch mode. If you cannot update to gulp 4, you should attach an error handler to catch those compilation errors.

gulp.src(..)
  .pipe(ts(..))
  .on('error', () => { /* Ignore compiler errors */})
  .pipe(gulp.dest(..))

Bug fixes

  • Mark node 8 as minimum requirement - #584
  • Removed dependency on vinyl in generated typings - #567
  • Use custom version of TypeScript in longReporter - #487
  • Prevent duplicate errors with noEmitOnErrors - #543
  • Fixed minimal support for project references - #595
  • Removed source maps comments from .d.ts files - #596

5.0.0-alpha.3 - Fix fullReporter

03 Jul 19:48
Compare
Choose a tag to compare

Fixes the full reporter (#581)

5.0.0-alpha.2 - Project references

18 Jun 20:20
Compare
Choose a tag to compare

Added support for project references (#579, thanks to @rbuckton)

v5.0.0-alpha.1 - Gulp 4 & TS 2.9

11 Jun 21:13
36ff1f5
Compare
Choose a tag to compare
  • 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

v4.0.1 - Fix missing dependency

08 Feb 20:10
Compare
Choose a tag to compare
  • Add missing dependency on vinyl (#561)
  • Fix empty base path when using out option

v4.0.0 - Updated for new Gulp & TypeScript versions

07 Feb 20:58
Compare
Choose a tag to compare

Release 4.0 dropped support for version of TypeScript before 4.0. It added support for the new release of Gulp (4.0). The important changes can be found in the release notes for 4.0.0-alpha.1:

  • Updated the test infrastructure (#545)
  • Updated dependencies (#551)
    • Removed dependency on gulp-util
    • Updated vinyl
  • Clarified the configuration of source maps in the readme (#538)
  • Fixed an issue where paths in additional options in createProject(..) where not resolved correctly (#525)
  • Correctly use the finish and end events (#540)
  • Don't show 'emit failed' with noEmit: true (#490)
  • Write errors to stdout instead of stderr, since the errors are not failures of gulp-typescript.

v4.0.0-alpha.2 - Prepared for TS 2.8 nightlies

23 Jan 19:17
Compare
Choose a tag to compare

v3.2.4 - Prepared for TS 2.8 nightlies

23 Jan 19:27
Compare
Choose a tag to compare

v4.0.0-alpha.1

10 Jan 17:54
Compare
Choose a tag to compare
  • Updated the test infrastructure (#545)
  • Updated dependencies (#551)
    • Removed dependency on gulp-util
    • Updated vinyl
  • Clarified the configuration of source maps in the readme (#538)
  • Fixed an issue where paths in additional options in createProject(..) where not resolved correctly (#525)
  • Correctly use the finish and end events (#540)
  • Don't show 'emit failed' with noEmit: true (#490)
  • Write errors to stdout instead of stderr, since the errors are not failures of gulp-typescript.