diff --git a/.travis.yml b/.travis.yml index 9c71f6d5..52a5ede0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,8 @@ language: node_js node_js: - - '6' + - '10' - '8' + - '6' install: - yarn install - yarn build diff --git a/CHANGELOG.md b/CHANGELOG.md index 71653263..5dd47e8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ +## v0.5.1 + +* [Make the checker compile with TypeScript 3.2](https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/189) + ## 0.5.0 + * Removed unused dependency `resolve`. * Replace `lodash` usage with native calls. * ** Breaking Changes**: @@ -8,7 +13,6 @@ * Enable all strict type checks * Update dev dependencies - ## v0.4.15 * [Add `tslintAutoFix` option to be passed on to tslint to auto format typescript files](https://github.com/Realytics/fork-ts-checker-webpack-plugin/pull/174) (#174) diff --git a/package.json b/package.json index f9902c04..41165cd6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fork-ts-checker-webpack-plugin", - "version": "0.5.0", + "version": "0.5.1", "description": "Runs typescript type checker and linter on separate process.", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/src/IncrementalChecker.ts b/src/IncrementalChecker.ts index a426dcfa..0ad6610d 100644 --- a/src/IncrementalChecker.ts +++ b/src/IncrementalChecker.ts @@ -48,9 +48,8 @@ export class IncrementalChecker { private workNumber: number = 0, private workDivision: number = 1, private checkSyntacticErrors: boolean = false, - private vue: boolean = false, - ) { - } + private vue: boolean = false + ) {} public static loadProgramConfig(configFile: string, compilerOptions: object) { const tsconfig = ts.readConfigFile(configFile, ts.sys.readFile).config; @@ -238,16 +237,14 @@ export class IncrementalChecker { const diagnosticsToRegister: ReadonlyArray = this .checkSyntacticErrors - ? program.getSemanticDiagnostics(sourceFile, cancellationToken) - .concat( - program.getSyntacticDiagnostics( - sourceFile, - cancellationToken - ) - ) + ? program + .getSemanticDiagnostics(sourceFile, cancellationToken) + .concat( + program.getSyntacticDiagnostics(sourceFile, cancellationToken) + ) : program.getSemanticDiagnostics(sourceFile, cancellationToken); - diagnostics.push.apply(diagnostics, diagnosticsToRegister); + diagnostics.push(...diagnosticsToRegister); }); // normalize and deduplicate diagnostics diff --git a/yarn.lock b/yarn.lock index a835f31d..022cf0a9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4698,9 +4698,9 @@ typedarray@^0.0.6: integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= typescript@^3.0.1: - version "3.1.6" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.1.6.tgz#b6543a83cfc8c2befb3f4c8fba6896f5b0c9be68" - integrity sha512-tDMYfVtvpb96msS1lDX9MEdHrW4yOuZ4Kdc4Him9oU796XldPYF/t2+uKoX0BBa0hXXwDlqYQbXY5Rzjzc5hBA== + version "3.2.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.2.2.tgz#fe8101c46aa123f8353523ebdcf5730c2ae493e5" + integrity sha512-VCj5UiSyHBjwfYacmDuc/NOk4QQixbE+Wn7MFJuS0nRuPQbof132Pw4u53dm264O8LPc2MVsc7RJNml5szurkg== uglify-es@^3.3.4: version "3.3.9"