fork-ts-checker-webpack-plugin 6.5.2 → 6.5.3
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.
|
@@ -76,7 +76,7 @@ exports.ForkTsCheckerWebpackPlugin = ForkTsCheckerWebpackPlugin;
|
|
|
76
76
|
/**
|
|
77
77
|
* Current version of the plugin
|
|
78
78
|
*/
|
|
79
|
-
ForkTsCheckerWebpackPlugin.version = '6.5.
|
|
79
|
+
ForkTsCheckerWebpackPlugin.version = '6.5.3'; // will be replaced by the @semantic-release/exec
|
|
80
80
|
/**
|
|
81
81
|
* Default pools for the plugin concurrency limit
|
|
82
82
|
*/
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import type * as ts from 'typescript';
|
|
2
2
|
import { Performance } from '../../profile/Performance';
|
|
3
3
|
interface TypeScriptPerformance {
|
|
4
|
-
enable(): void;
|
|
5
|
-
disable(): void;
|
|
6
|
-
|
|
7
|
-
measure(name: string, startMark?: string, endMark?: string): void;
|
|
4
|
+
enable?(): void;
|
|
5
|
+
disable?(): void;
|
|
6
|
+
forEachMeasure?(callback: (measureName: string, duration: number) => void): void;
|
|
8
7
|
}
|
|
9
8
|
declare function connectTypeScriptPerformance(typescript: typeof ts, performance: Performance): Performance;
|
|
10
9
|
export { TypeScriptPerformance, connectTypeScriptPerformance };
|
|
@@ -7,23 +7,16 @@ function getTypeScriptPerformance(typescript) {
|
|
|
7
7
|
function connectTypeScriptPerformance(typescript, performance) {
|
|
8
8
|
const typeScriptPerformance = getTypeScriptPerformance(typescript);
|
|
9
9
|
if (typeScriptPerformance) {
|
|
10
|
-
const { mark, measure } = typeScriptPerformance;
|
|
11
10
|
const { enable, disable } = performance;
|
|
12
|
-
typeScriptPerformance.mark = (name) => {
|
|
13
|
-
mark(name);
|
|
14
|
-
performance.mark(name);
|
|
15
|
-
};
|
|
16
|
-
typeScriptPerformance.measure = (name, startMark, endMark) => {
|
|
17
|
-
measure(name, startMark, endMark);
|
|
18
|
-
performance.measure(name, startMark, endMark);
|
|
19
|
-
};
|
|
20
11
|
return Object.assign(Object.assign({}, performance), { enable() {
|
|
12
|
+
var _a;
|
|
21
13
|
enable();
|
|
22
|
-
typeScriptPerformance.enable();
|
|
14
|
+
(_a = typeScriptPerformance.enable) === null || _a === void 0 ? void 0 : _a.call(typeScriptPerformance);
|
|
23
15
|
},
|
|
24
16
|
disable() {
|
|
17
|
+
var _a;
|
|
25
18
|
disable();
|
|
26
|
-
typeScriptPerformance.disable();
|
|
19
|
+
(_a = typeScriptPerformance.disable) === null || _a === void 0 ? void 0 : _a.call(typeScriptPerformance);
|
|
27
20
|
} });
|
|
28
21
|
}
|
|
29
22
|
else {
|