fork-ts-checker-webpack-plugin 6.2.12 → 6.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ForkTsCheckerWebpackPlugin.js +1 -1
- package/lib/reporter/reporter-rpc/ReporterRpcClient.js +11 -2
- package/lib/typescript-reporter/extension/TypeScriptExtension.d.ts +1 -1
- package/lib/typescript-reporter/issue/TypeScriptIssueFactory.d.ts +1 -1
- package/lib/typescript-reporter/profile/TypeScriptPerformance.d.ts +1 -1
- package/lib/typescript-reporter/reporter/ControlledTypeScriptSystem.d.ts +1 -1
- package/lib/typescript-reporter/reporter/ControlledWatchCompilerHost.d.ts +1 -1
- package/lib/typescript-reporter/reporter/ControlledWatchSolutionBuilderHost.d.ts +1 -1
- package/lib/typescript-reporter/reporter/ControlledWatchSolutionBuilderHost.js +1 -9
- package/lib/typescript-reporter/reporter/TypeScriptConfigurationParser.d.ts +1 -1
- package/lib/typescript-reporter/reporter/TypeScriptConfigurationParser.js +4 -12
- package/package.json +1 -1
|
@@ -65,7 +65,7 @@ exports.ForkTsCheckerWebpackPlugin = ForkTsCheckerWebpackPlugin;
|
|
|
65
65
|
/**
|
|
66
66
|
* Current version of the plugin
|
|
67
67
|
*/
|
|
68
|
-
ForkTsCheckerWebpackPlugin.version = '6.2.
|
|
68
|
+
ForkTsCheckerWebpackPlugin.version = '6.2.13'; // will be replaced by the @semantic-release/exec
|
|
69
69
|
/**
|
|
70
70
|
* Default pool for the plugin concurrency limit
|
|
71
71
|
*/
|
|
@@ -24,8 +24,17 @@ function createReporterRpcClient(channel, configuration) {
|
|
|
24
24
|
yield channel.open();
|
|
25
25
|
}
|
|
26
26
|
if (!rpcClient.isConnected()) {
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
try {
|
|
28
|
+
yield rpcClient.connect();
|
|
29
|
+
yield rpcClient.dispatchCall(ReporterRpcProcedure_1.configure, configuration);
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
// connect or configure was not successful -
|
|
33
|
+
// close the reporter and re-throw an error
|
|
34
|
+
yield rpcClient.disconnect();
|
|
35
|
+
yield channel.close();
|
|
36
|
+
throw error;
|
|
37
|
+
}
|
|
29
38
|
}
|
|
30
39
|
}),
|
|
31
40
|
disconnect: () => __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as ts from 'typescript';
|
|
1
|
+
import type * as ts from 'typescript';
|
|
2
2
|
import { TypeScriptHostExtension } from '../extension/TypeScriptExtension';
|
|
3
3
|
import { ControlledTypeScriptSystem } from './ControlledTypeScriptSystem';
|
|
4
4
|
declare function createControlledWatchCompilerHost<TProgram extends ts.BuilderProgram>(typescript: typeof ts, parsedCommandLine: ts.ParsedCommandLine, system: ControlledTypeScriptSystem, createProgram?: ts.CreateProgram<TProgram>, reportDiagnostic?: ts.DiagnosticReporter, reportWatchStatus?: ts.WatchStatusReporter, afterProgramCreate?: (program: TProgram) => void, hostExtensions?: TypeScriptHostExtension[]): ts.WatchCompilerHostOfFilesAndCompilerOptions<TProgram>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as ts from 'typescript';
|
|
1
|
+
import type * as ts from 'typescript';
|
|
2
2
|
import { TypeScriptHostExtension } from '../extension/TypeScriptExtension';
|
|
3
3
|
import { ControlledTypeScriptSystem } from './ControlledTypeScriptSystem';
|
|
4
4
|
declare function createControlledWatchSolutionBuilderHost<TProgram extends ts.BuilderProgram>(typescript: typeof ts, parsedCommandLine: ts.ParsedCommandLine, system: ControlledTypeScriptSystem, createProgram?: ts.CreateProgram<TProgram>, reportDiagnostic?: ts.DiagnosticReporter, reportWatchStatus?: ts.WatchStatusReporter, reportSolutionBuilderStatus?: (diagnostic: ts.Diagnostic) => void, afterProgramCreate?: (program: TProgram) => void, afterProgramEmitAndDiagnostics?: (program: TProgram) => void, hostExtensions?: TypeScriptHostExtension[]): ts.SolutionBuilderWithWatchHost<TProgram>;
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
|
-
if (mod && mod.__esModule) return mod;
|
|
4
|
-
var result = {};
|
|
5
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
6
|
-
result["default"] = mod;
|
|
7
|
-
return result;
|
|
8
|
-
};
|
|
9
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
const ts = __importStar(require("typescript"));
|
|
11
3
|
const ControlledWatchCompilerHost_1 = require("./ControlledWatchCompilerHost");
|
|
12
4
|
function createControlledWatchSolutionBuilderHost(typescript, parsedCommandLine, system, createProgram, reportDiagnostic, reportWatchStatus, reportSolutionBuilderStatus, afterProgramCreate, afterProgramEmitAndDiagnostics, hostExtensions = []) {
|
|
13
5
|
const controlledWatchCompilerHost = ControlledWatchCompilerHost_1.createControlledWatchCompilerHost(typescript, parsedCommandLine, system, createProgram, reportDiagnostic, reportWatchStatus, afterProgramCreate, hostExtensions);
|
|
@@ -42,7 +34,7 @@ function createControlledWatchSolutionBuilderHost(typescript, parsedCommandLine,
|
|
|
42
34
|
system.deleteFile(fileName);
|
|
43
35
|
},
|
|
44
36
|
getParsedCommandLine(fileName) {
|
|
45
|
-
return
|
|
37
|
+
return typescript.getParsedCommandLineOfConfigFile(fileName, { skipLibCheck: true }, Object.assign(Object.assign({}, system), { onUnRecoverableConfigFileDiagnostic: (diagnostic) => {
|
|
46
38
|
if (reportDiagnostic) {
|
|
47
39
|
reportDiagnostic(diagnostic);
|
|
48
40
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as ts from 'typescript';
|
|
1
|
+
import type * as ts from 'typescript';
|
|
2
2
|
import { TypeScriptConfigurationOverwrite } from '../TypeScriptConfigurationOverwrite';
|
|
3
3
|
import { FilesMatch } from '../../reporter';
|
|
4
4
|
declare function parseTypeScriptConfiguration(typescript: typeof ts, configFileName: string, configFileContext: string, configOverwriteJSON: TypeScriptConfigurationOverwrite, parseConfigFileHost: ts.ParseConfigFileHost): ts.ParsedCommandLine;
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
3
|
-
if (mod && mod.__esModule) return mod;
|
|
4
|
-
var result = {};
|
|
5
|
-
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
|
6
|
-
result["default"] = mod;
|
|
7
|
-
return result;
|
|
8
|
-
};
|
|
9
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
const ts = __importStar(require("typescript"));
|
|
11
3
|
const path_1 = require("path");
|
|
12
4
|
function parseTypeScriptConfiguration(typescript, configFileName, configFileContext, configOverwriteJSON, parseConfigFileHost) {
|
|
13
5
|
const parsedConfigFileJSON = typescript.readConfigFile(configFileName, parseConfigFileHost.readFile);
|
|
@@ -68,10 +60,10 @@ function removeJsonExtension(path) {
|
|
|
68
60
|
return path;
|
|
69
61
|
}
|
|
70
62
|
}
|
|
71
|
-
function getTsBuildInfoEmitOutputFilePath(options) {
|
|
72
|
-
if (typeof
|
|
63
|
+
function getTsBuildInfoEmitOutputFilePath(typescript, options) {
|
|
64
|
+
if (typeof typescript.getTsBuildInfoEmitOutputFilePath === 'function') {
|
|
73
65
|
// old TypeScript version doesn't provides this method
|
|
74
|
-
return
|
|
66
|
+
return typescript.getTsBuildInfoEmitOutputFilePath(options);
|
|
75
67
|
}
|
|
76
68
|
// based on the implementation from typescript
|
|
77
69
|
const configFile = options.configFilePath;
|
|
@@ -106,7 +98,7 @@ function getArtifactsFromTypeScriptConfiguration(typescript, parsedConfiguration
|
|
|
106
98
|
if (parsedConfiguration.options.outFile) {
|
|
107
99
|
files.add(path_1.resolve(configFileContext, parsedConfiguration.options.outFile));
|
|
108
100
|
}
|
|
109
|
-
const tsBuildInfoPath = getTsBuildInfoEmitOutputFilePath(parsedConfiguration.options);
|
|
101
|
+
const tsBuildInfoPath = getTsBuildInfoEmitOutputFilePath(typescript, parsedConfiguration.options);
|
|
110
102
|
if (tsBuildInfoPath) {
|
|
111
103
|
files.add(path_1.resolve(configFileContext, tsBuildInfoPath));
|
|
112
104
|
}
|