fork-ts-checker-webpack-plugin 7.0.0-alpha.11 → 7.0.0-alpha.12
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/README.md +1 -1
- package/lib/files-change.d.ts +2 -1
- package/lib/files-change.js +20 -13
- package/lib/formatter/{BasicFormatter.d.ts → basic-formatter.d.ts} +1 -1
- package/lib/formatter/{BasicFormatter.js → basic-formatter.js} +0 -0
- package/lib/formatter/{CodeFrameFormatter.d.ts → code-frame-formatter.d.ts} +1 -1
- package/lib/formatter/{CodeFrameFormatter.js → code-frame-formatter.js} +2 -2
- package/lib/formatter/formatter-config.d.ts +5 -0
- package/lib/formatter/{FormatterConfiguration.js → formatter-config.js} +8 -8
- package/lib/formatter/{FormatterOptions.d.ts → formatter-options.d.ts} +1 -1
- package/lib/{ForkTsCheckerWebpackPluginOptions.js → formatter/formatter-options.js} +0 -0
- package/lib/formatter/{Formatter.d.ts → formatter.d.ts} +0 -0
- package/lib/formatter/{Formatter.js → formatter.js} +0 -0
- package/lib/formatter/index.d.ts +6 -6
- package/lib/formatter/index.js +6 -6
- package/lib/formatter/{WebpackFormatter.d.ts → webpack-formatter.d.ts} +1 -1
- package/lib/formatter/{WebpackFormatter.js → webpack-formatter.js} +2 -2
- package/lib/hooks/intercept-done-to-get-dev-server-tap.d.ts +5 -0
- package/lib/hooks/{interceptDoneToGetWebpackDevServerTap.js → intercept-done-to-get-dev-server-tap.js} +4 -6
- package/lib/hooks/tap-after-compile-to-add-dependencies.d.ts +5 -0
- package/lib/hooks/{tapAfterCompileToAddDependencies.js → tap-after-compile-to-add-dependencies.js} +1 -1
- package/lib/hooks/tap-after-compile-to-get-issues.d.ts +5 -0
- package/lib/hooks/{tapAfterCompileToGetIssues.js → tap-after-compile-to-get-issues.js} +6 -6
- package/lib/hooks/{tapAfterEnvironmentToPatchWatching.d.ts → tap-after-environment-to-patch-watching.d.ts} +1 -1
- package/lib/hooks/{tapAfterEnvironmentToPatchWatching.js → tap-after-environment-to-patch-watching.js} +2 -2
- package/lib/hooks/tap-done-to-async-get-issues.d.ts +5 -0
- package/lib/hooks/{tapDoneToAsyncGetIssues.js → tap-done-to-async-get-issues.js} +15 -15
- package/lib/hooks/tap-error-to-log-message.d.ts +4 -0
- package/lib/hooks/{tapErrorToLogMessage.js → tap-error-to-log-message.js} +7 -7
- package/lib/hooks/{tapStartToRunWorkers.d.ts → tap-start-to-run-workers.d.ts} +4 -4
- package/lib/hooks/{tapStartToRunWorkers.js → tap-start-to-run-workers.js} +13 -13
- package/lib/hooks/{tapStopToTerminateWorkers.d.ts → tap-stop-to-terminate-workers.d.ts} +2 -2
- package/lib/hooks/{tapStopToTerminateWorkers.js → tap-stop-to-terminate-workers.js} +0 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/lib/infrastructure-logger.d.ts +1 -2
- package/lib/issue/index.d.ts +3 -3
- package/lib/issue/index.js +3 -3
- package/lib/issue/issue-config.d.ts +8 -0
- package/lib/issue/issue-config.js +29 -0
- package/lib/issue/{IssueLocation.d.ts → issue-location.d.ts} +1 -1
- package/lib/issue/{IssueLocation.js → issue-location.js} +3 -3
- package/lib/issue/{IssueMatch.d.ts → issue-match.d.ts} +1 -1
- package/lib/issue/{IssueMatch.js → issue-match.js} +2 -2
- package/lib/issue/{IssueOptions.d.ts → issue-options.d.ts} +2 -2
- package/lib/{formatter/FormatterOptions.js → issue/issue-options.js} +0 -0
- package/lib/issue/{IssuePosition.d.ts → issue-position.d.ts} +0 -0
- package/lib/issue/{IssuePosition.js → issue-position.js} +0 -0
- package/lib/issue/{IssuePredicate.d.ts → issue-predicate.d.ts} +0 -0
- package/lib/issue/{IssuePredicate.js → issue-predicate.js} +0 -0
- package/lib/issue/{IssueSeverity.d.ts → issue-severity.d.ts} +0 -0
- package/lib/issue/{IssueSeverity.js → issue-severity.js} +0 -0
- package/lib/issue/{IssueWebpackError.d.ts → issue-webpack-error.d.ts} +1 -1
- package/lib/issue/{IssueWebpackError.js → issue-webpack-error.js} +4 -4
- package/lib/issue/{Issue.d.ts → issue.d.ts} +2 -2
- package/lib/issue/{Issue.js → issue.js} +5 -5
- package/lib/logger/logger-config.d.ts +10 -0
- package/lib/logger/logger-config.js +12 -0
- package/lib/logger/{LoggerFactory.d.ts → logger-factory.d.ts} +1 -1
- package/lib/logger/{LoggerFactory.js → logger-factory.js} +5 -5
- package/lib/logger/{LoggerOptions.d.ts → logger-options.d.ts} +2 -2
- package/lib/{issue/IssueOptions.js → logger/logger-options.js} +0 -0
- package/lib/logger/{Logger.d.ts → logger.d.ts} +0 -0
- package/lib/logger/{Logger.js → logger.js} +0 -0
- package/lib/logger/{PartialLogger.d.ts → partial-logger.d.ts} +1 -1
- package/lib/logger/{PartialLogger.js → partial-logger.js} +0 -0
- package/lib/logger/{WebpackInfrastructureLogger.d.ts → webpack-infrastructure-logger.d.ts} +1 -1
- package/lib/logger/{WebpackInfrastructureLogger.js → webpack-infrastructure-logger.js} +0 -0
- package/lib/plugin-config.d.ts +15 -0
- package/lib/plugin-config.js +17 -0
- package/lib/{hooks/pluginHooks.d.ts → plugin-hooks.d.ts} +6 -6
- package/lib/{hooks/pluginHooks.js → plugin-hooks.js} +8 -8
- package/lib/{ForkTsCheckerWebpackPluginOptions.d.ts → plugin-options.d.ts} +4 -4
- package/lib/{logger/LoggerOptions.js → plugin-options.js} +0 -0
- package/lib/{ForkTsCheckerWebpackPluginOptions.json → plugin-options.json} +0 -0
- package/lib/{hooks/pluginPools.d.ts → plugin-pools.d.ts} +1 -1
- package/lib/{hooks/pluginPools.js → plugin-pools.js} +1 -1
- package/lib/{ForkTsCheckerWebpackPluginState.d.ts → plugin-state.d.ts} +2 -2
- package/lib/{ForkTsCheckerWebpackPluginState.js → plugin-state.js} +3 -3
- package/lib/{ForkTsCheckerWebpackPlugin.d.ts → plugin.d.ts} +2 -2
- package/lib/plugin.js +82 -0
- package/lib/{utils/rpc/expose.d.ts → rpc/expose-rpc.d.ts} +0 -0
- package/lib/{utils/rpc/expose.js → rpc/expose-rpc.js} +0 -0
- package/lib/rpc/index.d.ts +5 -0
- package/lib/{utils/rpc → rpc}/index.js +9 -9
- package/lib/{utils/rpc/error.d.ts → rpc/rpc-error.d.ts} +0 -0
- package/lib/{utils/rpc/error.js → rpc/rpc-error.js} +0 -0
- package/lib/{utils/rpc/worker.d.ts → rpc/rpc-worker.d.ts} +0 -0
- package/lib/{utils/rpc/worker.js → rpc/rpc-worker.js} +2 -2
- package/lib/{utils/rpc → rpc}/types.d.ts +0 -0
- package/lib/{utils/rpc → rpc}/types.js +0 -0
- package/lib/{utils/rpc/wrap.d.ts → rpc/wrap-rpc.d.ts} +0 -0
- package/lib/{utils/rpc/wrap.js → rpc/wrap-rpc.js} +2 -2
- package/lib/typescript/extension/{TypeScriptEmbeddedExtension.d.ts → type-script-embedded-extension.d.ts} +1 -1
- package/lib/typescript/extension/{TypeScriptEmbeddedExtension.js → type-script-embedded-extension.js} +0 -0
- package/lib/typescript/extension/{TypeScriptExtension.d.ts → type-script-extension.d.ts} +0 -0
- package/lib/typescript/{TypeScriptConfigurationOverwrite.js → extension/type-script-extension.js} +0 -0
- package/lib/typescript/extension/vue/type-script-vue-extension-config.d.ts +7 -0
- package/lib/typescript/extension/vue/{TypeScriptVueExtensionConfiguration.js → type-script-vue-extension-config.js} +3 -3
- package/lib/typescript/extension/vue/{TypeScriptVueExtensionOptions.d.ts → type-script-vue-extension-options.d.ts} +0 -0
- package/lib/typescript/{TypeScriptDiagnosticsOptions.js → extension/vue/type-script-vue-extension-options.js} +0 -0
- package/lib/typescript/extension/vue/type-script-vue-extension-support.d.ts +3 -0
- package/lib/typescript/extension/vue/{TypeScriptVueExtensionSupport.js → type-script-vue-extension-support.js} +2 -2
- package/lib/typescript/extension/vue/type-script-vue-extension.d.ts +4 -0
- package/lib/typescript/extension/vue/{TypeScriptVueExtension.js → type-script-vue-extension.js} +4 -4
- package/lib/typescript/{TypeScriptConfigurationOverwrite.d.ts → type-script-config-overwrite.d.ts} +2 -2
- package/lib/typescript/{TypeScriptReporterOptions.js → type-script-config-overwrite.js} +0 -0
- package/lib/typescript/{TypeScriptDiagnosticsOptions.d.ts → type-script-diagnostics-options.d.ts} +0 -0
- package/lib/typescript/{extension/TypeScriptExtension.js → type-script-diagnostics-options.js} +0 -0
- package/lib/typescript/type-script-support.d.ts +3 -0
- package/lib/typescript/{TypeScriptSupport.js → type-script-support.js} +8 -8
- package/lib/typescript/type-script-worker-config.d.ts +22 -0
- package/lib/typescript/{TypeScriptReporterConfiguration.js → type-script-worker-config.js} +5 -5
- package/lib/typescript/{TypeScriptReporterOptions.d.ts → type-script-worker-options.d.ts} +6 -6
- package/lib/typescript/{extension/vue/TypeScriptVueExtensionOptions.js → type-script-worker-options.js} +0 -0
- package/lib/typescript/worker/get-dependencies-worker.js +1 -1
- package/lib/typescript/worker/get-issues-worker.js +1 -1
- package/lib/typescript/worker/lib/artifacts.js +2 -2
- package/lib/typescript/worker/lib/config.d.ts +2 -2
- package/lib/typescript/worker/lib/config.js +3 -6
- package/lib/typescript/worker/lib/dependencies.js +2 -2
- package/lib/typescript/worker/lib/extensions.d.ts +1 -1
- package/lib/typescript/worker/lib/extensions.js +2 -2
- package/lib/typescript/worker/lib/system.js +6 -9
- package/lib/typescript/worker/lib/worker-config.d.ts +2 -2
- package/lib/typescript/worker/lib/worker-config.js +1 -1
- package/lib/utils/async/{isPending.d.ts → is-pending.d.ts} +1 -1
- package/lib/utils/async/{isPending.js → is-pending.js} +2 -1
- package/lib/utils/async/wait.d.ts +1 -1
- package/lib/utils/async/wait.js +2 -1
- package/lib/utils/path/{forwardSlash.d.ts → forward-slash.d.ts} +1 -1
- package/lib/utils/path/{forwardSlash.js → forward-slash.js} +2 -1
- package/lib/utils/path/{relativeToContext.d.ts → relative-to-context.d.ts} +0 -0
- package/lib/utils/path/{relativeToContext.js → relative-to-context.js} +2 -2
- package/lib/watch/{InclusiveNodeWatchFileSystem.d.ts → inclusive-node-watch-file-system.d.ts} +6 -6
- package/lib/watch/{InclusiveNodeWatchFileSystem.js → inclusive-node-watch-file-system.js} +36 -4
- package/lib/watch/{WatchFileSystem.d.ts → watch-file-system.d.ts} +1 -1
- package/lib/watch/{WatchFileSystem.js → watch-file-system.js} +0 -0
- package/package.json +1 -1
- package/lib/ForkTsCheckerWebpackPlugin.js +0 -84
- package/lib/ForkTsCheckerWebpackPluginConfiguration.d.ts +0 -15
- package/lib/ForkTsCheckerWebpackPluginConfiguration.js +0 -17
- package/lib/formatter/FormatterConfiguration.d.ts +0 -5
- package/lib/hooks/interceptDoneToGetWebpackDevServerTap.d.ts +0 -5
- package/lib/hooks/tapAfterCompileToAddDependencies.d.ts +0 -5
- package/lib/hooks/tapAfterCompileToGetIssues.d.ts +0 -5
- package/lib/hooks/tapDoneToAsyncGetIssues.d.ts +0 -5
- package/lib/hooks/tapErrorToLogMessage.d.ts +0 -4
- package/lib/issue/IssueConfiguration.d.ts +0 -8
- package/lib/issue/IssueConfiguration.js +0 -29
- package/lib/logger/LoggerConfiguration.d.ts +0 -10
- package/lib/logger/LoggerConfiguration.js +0 -12
- package/lib/typescript/TypeScriptReporterConfiguration.d.ts +0 -22
- package/lib/typescript/TypeScriptSupport.d.ts +0 -3
- package/lib/typescript/extension/vue/TypeScriptVueExtension.d.ts +0 -4
- package/lib/typescript/extension/vue/TypeScriptVueExtensionConfiguration.d.ts +0 -7
- package/lib/typescript/extension/vue/TypeScriptVueExtensionSupport.d.ts +0 -3
- package/lib/utils/array/flatten.d.ts +0 -2
- package/lib/utils/array/flatten.js +0 -6
- package/lib/utils/array/intersect.d.ts +0 -2
- package/lib/utils/array/intersect.js +0 -6
- package/lib/utils/array/substract.d.ts +0 -2
- package/lib/utils/array/substract.js +0 -6
- package/lib/utils/array/unique.d.ts +0 -2
- package/lib/utils/array/unique.js +0 -6
- package/lib/utils/rpc/index.d.ts +0 -5
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createIssueConfig = void 0;
|
|
4
|
+
const issue_match_1 = require("./issue-match");
|
|
5
|
+
const issue_predicate_1 = require("./issue-predicate");
|
|
6
|
+
function createIssuePredicateFromOption(context, option) {
|
|
7
|
+
if (Array.isArray(option)) {
|
|
8
|
+
return issue_predicate_1.composeIssuePredicates(option.map((option) => typeof option === 'function' ? option : issue_match_1.createIssuePredicateFromIssueMatch(context, option)));
|
|
9
|
+
}
|
|
10
|
+
return typeof option === 'function'
|
|
11
|
+
? option
|
|
12
|
+
: issue_match_1.createIssuePredicateFromIssueMatch(context, option);
|
|
13
|
+
}
|
|
14
|
+
function createIssueConfig(compiler, options) {
|
|
15
|
+
const context = compiler.options.context || process.cwd();
|
|
16
|
+
if (!options) {
|
|
17
|
+
options = {};
|
|
18
|
+
}
|
|
19
|
+
const include = options.include
|
|
20
|
+
? createIssuePredicateFromOption(context, options.include)
|
|
21
|
+
: issue_predicate_1.createTrivialIssuePredicate(true);
|
|
22
|
+
const exclude = options.exclude
|
|
23
|
+
? createIssuePredicateFromOption(context, options.exclude)
|
|
24
|
+
: issue_predicate_1.createTrivialIssuePredicate(false);
|
|
25
|
+
return {
|
|
26
|
+
predicate: (issue) => include(issue) && !exclude(issue),
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
exports.createIssueConfig = createIssueConfig;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.formatIssueLocation = exports.compareIssueLocations = void 0;
|
|
4
|
-
const
|
|
4
|
+
const issue_position_1 = require("./issue-position");
|
|
5
5
|
function compareIssueLocations(locationA, locationB) {
|
|
6
6
|
if (locationA === locationB) {
|
|
7
7
|
return 0;
|
|
@@ -12,8 +12,8 @@ function compareIssueLocations(locationA, locationB) {
|
|
|
12
12
|
if (!locationB) {
|
|
13
13
|
return 1;
|
|
14
14
|
}
|
|
15
|
-
return (
|
|
16
|
-
|
|
15
|
+
return (issue_position_1.compareIssuePositions(locationA.start, locationB.start) ||
|
|
16
|
+
issue_position_1.compareIssuePositions(locationA.end, locationB.end));
|
|
17
17
|
}
|
|
18
18
|
exports.compareIssueLocations = compareIssueLocations;
|
|
19
19
|
function formatIssueLocation({ start, end }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { IssuePredicate } from './
|
|
1
|
+
import type { IssuePredicate } from './issue-predicate';
|
|
2
2
|
import type { Issue } from './index';
|
|
3
3
|
declare type IssueMatch = Partial<Pick<Issue, 'severity' | 'code' | 'file'>>;
|
|
4
4
|
declare function createIssuePredicateFromIssueMatch(context: string, match: IssueMatch): IssuePredicate;
|
|
@@ -6,14 +6,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.createIssuePredicateFromIssueMatch = void 0;
|
|
7
7
|
const path_1 = __importDefault(require("path"));
|
|
8
8
|
const minimatch_1 = __importDefault(require("minimatch"));
|
|
9
|
-
const
|
|
9
|
+
const forward_slash_1 = require("../utils/path/forward-slash");
|
|
10
10
|
function createIssuePredicateFromIssueMatch(context, match) {
|
|
11
11
|
return (issue) => {
|
|
12
12
|
const matchesSeverity = !match.severity || match.severity === issue.severity;
|
|
13
13
|
const matchesCode = !match.code || match.code === issue.code;
|
|
14
14
|
const matchesFile = !issue.file ||
|
|
15
15
|
(!!issue.file &&
|
|
16
|
-
(!match.file || minimatch_1.default(
|
|
16
|
+
(!match.file || minimatch_1.default(forward_slash_1.forwardSlash(path_1.default.relative(context, issue.file)), match.file)));
|
|
17
17
|
return matchesSeverity && matchesCode && matchesFile;
|
|
18
18
|
};
|
|
19
19
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IssueMatch } from './
|
|
2
|
-
import type { IssuePredicate } from './
|
|
1
|
+
import type { IssueMatch } from './issue-match';
|
|
2
|
+
import type { IssuePredicate } from './issue-predicate';
|
|
3
3
|
declare type IssuePredicateOption = IssuePredicate | IssueMatch | (IssuePredicate | IssueMatch)[];
|
|
4
4
|
interface IssueOptions {
|
|
5
5
|
include?: IssuePredicateOption;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -6,8 +6,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.IssueWebpackError = void 0;
|
|
7
7
|
const chalk_1 = __importDefault(require("chalk"));
|
|
8
8
|
const webpack_1 = __importDefault(require("webpack"));
|
|
9
|
-
const
|
|
10
|
-
const
|
|
9
|
+
const relative_to_context_1 = require("../utils/path/relative-to-context");
|
|
10
|
+
const issue_location_1 = require("./issue-location");
|
|
11
11
|
class IssueWebpackError extends webpack_1.default.WebpackError {
|
|
12
12
|
constructor(message, issue) {
|
|
13
13
|
super(message);
|
|
@@ -17,9 +17,9 @@ class IssueWebpackError extends webpack_1.default.WebpackError {
|
|
|
17
17
|
// should be a NormalModule instance.
|
|
18
18
|
// to avoid such a dependency, we do a workaround - error.file will contain formatted location instead
|
|
19
19
|
if (issue.file) {
|
|
20
|
-
this.file =
|
|
20
|
+
this.file = relative_to_context_1.relativeToContext(issue.file, process.cwd());
|
|
21
21
|
if (issue.location) {
|
|
22
|
-
this.file += ` ${chalk_1.default.green.bold(
|
|
22
|
+
this.file += ` ${chalk_1.default.green.bold(issue_location_1.formatIssueLocation(issue.location))}`;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
Error.captureStackTrace(this, this.constructor);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { IssueLocation } from './
|
|
2
|
-
import type { IssueSeverity } from './
|
|
1
|
+
import type { IssueLocation } from './issue-location';
|
|
2
|
+
import type { IssueSeverity } from './issue-severity';
|
|
3
3
|
interface Issue {
|
|
4
4
|
severity: IssueSeverity;
|
|
5
5
|
code: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.deduplicateAndSortIssues = exports.isIssue = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const issue_location_1 = require("./issue-location");
|
|
5
|
+
const issue_severity_1 = require("./issue-severity");
|
|
6
6
|
function isIssue(value) {
|
|
7
7
|
return (!!value &&
|
|
8
8
|
typeof value === 'object' &&
|
|
9
|
-
|
|
9
|
+
issue_severity_1.isIssueSeverity(value.severity) &&
|
|
10
10
|
!!value.code &&
|
|
11
11
|
!!value.message);
|
|
12
12
|
}
|
|
@@ -24,9 +24,9 @@ function compareStrings(stringA, stringB) {
|
|
|
24
24
|
return stringA.toString().localeCompare(stringB.toString());
|
|
25
25
|
}
|
|
26
26
|
function compareIssues(issueA, issueB) {
|
|
27
|
-
return (
|
|
27
|
+
return (issue_severity_1.compareIssueSeverities(issueA.severity, issueB.severity) ||
|
|
28
28
|
compareStrings(issueA.file, issueB.file) ||
|
|
29
|
-
|
|
29
|
+
issue_location_1.compareIssueLocations(issueA.location, issueB.location) ||
|
|
30
30
|
compareStrings(issueA.code, issueB.code) ||
|
|
31
31
|
compareStrings(issueA.message, issueB.message) ||
|
|
32
32
|
0 /* EqualTo */);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type webpack from 'webpack';
|
|
2
|
+
import type Logger from './logger';
|
|
3
|
+
import type LoggerOptions from './logger-options';
|
|
4
|
+
interface LoggerConfig {
|
|
5
|
+
infrastructure: Logger;
|
|
6
|
+
issues: Logger;
|
|
7
|
+
devServer: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function createLoggerConfig(compiler: webpack.Compiler, options: LoggerOptions | undefined): LoggerConfig;
|
|
10
|
+
export { LoggerConfig, createLoggerConfig };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createLoggerConfig = void 0;
|
|
4
|
+
const logger_factory_1 = require("./logger-factory");
|
|
5
|
+
function createLoggerConfig(compiler, options) {
|
|
6
|
+
return {
|
|
7
|
+
infrastructure: logger_factory_1.createLogger((options && options.infrastructure) || 'webpack-infrastructure', compiler),
|
|
8
|
+
issues: logger_factory_1.createLogger((options && options.issues) || 'console', compiler),
|
|
9
|
+
devServer: (options === null || options === void 0 ? void 0 : options.devServer) !== false,
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
exports.createLoggerConfig = createLoggerConfig;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type webpack from 'webpack';
|
|
2
|
-
import type Logger from './
|
|
2
|
+
import type Logger from './logger';
|
|
3
3
|
declare type LoggerType = 'console' | 'webpack-infrastructure' | 'silent';
|
|
4
4
|
declare function createLogger(type: LoggerType | Logger, compiler: webpack.Compiler): Logger;
|
|
5
5
|
export { createLogger, LoggerType };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createLogger = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const partial_logger_1 = require("./partial-logger");
|
|
5
|
+
const webpack_infrastructure_logger_1 = require("./webpack-infrastructure-logger");
|
|
6
6
|
function createLogger(type, compiler) {
|
|
7
7
|
if (typeof type !== 'string') {
|
|
8
8
|
return type;
|
|
9
9
|
}
|
|
10
10
|
switch (type) {
|
|
11
11
|
case 'webpack-infrastructure':
|
|
12
|
-
return (
|
|
13
|
-
|
|
12
|
+
return (webpack_infrastructure_logger_1.createWebpackInfrastructureLogger(compiler) ||
|
|
13
|
+
partial_logger_1.createPartialLogger(['log', 'error'], console));
|
|
14
14
|
case 'silent':
|
|
15
|
-
return
|
|
15
|
+
return partial_logger_1.createPartialLogger([], console);
|
|
16
16
|
case 'console':
|
|
17
17
|
default:
|
|
18
18
|
return console;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type Logger from './
|
|
2
|
-
import type { LoggerType } from './
|
|
1
|
+
import type Logger from './logger';
|
|
2
|
+
import type { LoggerType } from './logger-factory';
|
|
3
3
|
declare type LoggerOptions = {
|
|
4
4
|
infrastructure?: LoggerType | Logger;
|
|
5
5
|
issues?: LoggerType | Logger;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type webpack from 'webpack';
|
|
2
|
+
import type { FormatterConfig } from './formatter';
|
|
3
|
+
import type { IssueConfig } from './issue/issue-config';
|
|
4
|
+
import type { LoggerConfig } from './logger/logger-config';
|
|
5
|
+
import type { ForkTsCheckerWebpackPluginOptions } from './plugin-options';
|
|
6
|
+
import type { TypeScriptWorkerConfig } from './typescript/type-script-worker-config';
|
|
7
|
+
interface ForkTsCheckerWebpackPluginConfig {
|
|
8
|
+
async: boolean;
|
|
9
|
+
typescript: TypeScriptWorkerConfig;
|
|
10
|
+
issue: IssueConfig;
|
|
11
|
+
formatter: FormatterConfig;
|
|
12
|
+
logger: LoggerConfig;
|
|
13
|
+
}
|
|
14
|
+
declare function createPluginConfig(compiler: webpack.Compiler, options?: ForkTsCheckerWebpackPluginOptions): ForkTsCheckerWebpackPluginConfig;
|
|
15
|
+
export { ForkTsCheckerWebpackPluginConfig, createPluginConfig };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createPluginConfig = void 0;
|
|
4
|
+
const formatter_1 = require("./formatter");
|
|
5
|
+
const issue_config_1 = require("./issue/issue-config");
|
|
6
|
+
const logger_config_1 = require("./logger/logger-config");
|
|
7
|
+
const type_script_worker_config_1 = require("./typescript/type-script-worker-config");
|
|
8
|
+
function createPluginConfig(compiler, options = {}) {
|
|
9
|
+
return {
|
|
10
|
+
async: options.async === undefined ? compiler.options.mode === 'development' : options.async,
|
|
11
|
+
typescript: type_script_worker_config_1.createTypeScriptWorkerConfig(compiler, options.typescript),
|
|
12
|
+
issue: issue_config_1.createIssueConfig(compiler, options.issue),
|
|
13
|
+
formatter: formatter_1.createFormatterConfig(options.formatter),
|
|
14
|
+
logger: logger_config_1.createLoggerConfig(compiler, options.logger),
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
exports.createPluginConfig = createPluginConfig;
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { SyncHook, SyncWaterfallHook, AsyncSeriesWaterfallHook } from 'tapable';
|
|
2
2
|
import type * as webpack from 'webpack';
|
|
3
|
-
import type { FilesChange } from '
|
|
4
|
-
import type { Issue } from '
|
|
5
|
-
declare function
|
|
3
|
+
import type { FilesChange } from './files-change';
|
|
4
|
+
import type { Issue } from './issue';
|
|
5
|
+
declare function createPluginHooks(): {
|
|
6
6
|
start: AsyncSeriesWaterfallHook<[FilesChange, webpack.Compilation], import("tapable").UnsetAdditionalOptions>;
|
|
7
7
|
waiting: SyncHook<[webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
|
|
8
8
|
canceled: SyncHook<[webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
|
|
9
9
|
error: SyncHook<[Error, webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
|
|
10
10
|
issues: SyncWaterfallHook<[Issue[], webpack.Compilation | undefined], void>;
|
|
11
11
|
};
|
|
12
|
-
declare type ForkTsCheckerWebpackPluginHooks = ReturnType<typeof
|
|
13
|
-
declare function
|
|
12
|
+
declare type ForkTsCheckerWebpackPluginHooks = ReturnType<typeof createPluginHooks>;
|
|
13
|
+
declare function getPluginHooks(compiler: webpack.Compiler | webpack.MultiCompiler): {
|
|
14
14
|
start: AsyncSeriesWaterfallHook<[FilesChange, webpack.Compilation], import("tapable").UnsetAdditionalOptions>;
|
|
15
15
|
waiting: SyncHook<[webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
|
|
16
16
|
canceled: SyncHook<[webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
|
|
17
17
|
error: SyncHook<[Error, webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
|
|
18
18
|
issues: SyncWaterfallHook<[Issue[], webpack.Compilation | undefined], void>;
|
|
19
19
|
};
|
|
20
|
-
export {
|
|
20
|
+
export { getPluginHooks, ForkTsCheckerWebpackPluginHooks };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.getPluginHooks = void 0;
|
|
4
4
|
const tapable_1 = require("tapable");
|
|
5
5
|
const compilerHookMap = new WeakMap();
|
|
6
|
-
function
|
|
6
|
+
function createPluginHooks() {
|
|
7
7
|
return {
|
|
8
8
|
start: new tapable_1.AsyncSeriesWaterfallHook([
|
|
9
9
|
'change',
|
|
@@ -18,28 +18,28 @@ function createForkTsCheckerWebpackPluginHooks() {
|
|
|
18
18
|
]),
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function forwardPluginHooks(source, target) {
|
|
22
22
|
source.start.tapPromise('ForkTsCheckerWebpackPlugin', target.start.promise);
|
|
23
23
|
source.waiting.tap('ForkTsCheckerWebpackPlugin', target.waiting.call);
|
|
24
24
|
source.canceled.tap('ForkTsCheckerWebpackPlugin', target.canceled.call);
|
|
25
25
|
source.error.tap('ForkTsCheckerWebpackPlugin', target.error.call);
|
|
26
26
|
source.issues.tap('ForkTsCheckerWebpackPlugin', target.issues.call);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function getPluginHooks(compiler) {
|
|
29
29
|
let hooks = compilerHookMap.get(compiler);
|
|
30
30
|
if (hooks === undefined) {
|
|
31
|
-
hooks =
|
|
31
|
+
hooks = createPluginHooks();
|
|
32
32
|
compilerHookMap.set(compiler, hooks);
|
|
33
33
|
// proxy hooks for multi-compiler
|
|
34
34
|
if ('compilers' in compiler) {
|
|
35
35
|
compiler.compilers.forEach((childCompiler) => {
|
|
36
|
-
const childHooks =
|
|
36
|
+
const childHooks = getPluginHooks(childCompiler);
|
|
37
37
|
if (hooks) {
|
|
38
|
-
|
|
38
|
+
forwardPluginHooks(childHooks, hooks);
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
return hooks;
|
|
44
44
|
}
|
|
45
|
-
exports.
|
|
45
|
+
exports.getPluginHooks = getPluginHooks;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { FormatterOptions } from './formatter';
|
|
2
|
-
import type { IssueOptions } from './issue/
|
|
3
|
-
import type LoggerOptions from './logger/
|
|
4
|
-
import type {
|
|
2
|
+
import type { IssueOptions } from './issue/issue-options';
|
|
3
|
+
import type LoggerOptions from './logger/logger-options';
|
|
4
|
+
import type { TypeScriptWorkerOptions } from './typescript/type-script-worker-options';
|
|
5
5
|
interface ForkTsCheckerWebpackPluginOptions {
|
|
6
6
|
async?: boolean;
|
|
7
|
-
typescript?:
|
|
7
|
+
typescript?: TypeScriptWorkerOptions;
|
|
8
8
|
formatter?: FormatterOptions;
|
|
9
9
|
issue?: IssueOptions;
|
|
10
10
|
logger?: LoggerOptions;
|
|
File without changes
|
|
File without changes
|
|
@@ -21,7 +21,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
22
|
exports.dependenciesPool = exports.issuesPool = void 0;
|
|
23
23
|
const os = __importStar(require("os"));
|
|
24
|
-
const pool_1 = require("
|
|
24
|
+
const pool_1 = require("./utils/async/pool");
|
|
25
25
|
const issuesPool = pool_1.createPool(Math.max(1, os.cpus().length));
|
|
26
26
|
exports.issuesPool = issuesPool;
|
|
27
27
|
const dependenciesPool = pool_1.createPool(Math.max(1, os.cpus().length));
|
|
@@ -10,5 +10,5 @@ interface ForkTsCheckerWebpackPluginState {
|
|
|
10
10
|
iteration: number;
|
|
11
11
|
webpackDevServerDoneTap: FullTap | undefined;
|
|
12
12
|
}
|
|
13
|
-
declare function
|
|
14
|
-
export { ForkTsCheckerWebpackPluginState,
|
|
13
|
+
declare function createPluginState(): ForkTsCheckerWebpackPluginState;
|
|
14
|
+
export { ForkTsCheckerWebpackPluginState, createPluginState };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
function
|
|
3
|
+
exports.createPluginState = void 0;
|
|
4
|
+
function createPluginState() {
|
|
5
5
|
return {
|
|
6
6
|
issuesPromise: Promise.resolve(undefined),
|
|
7
7
|
dependenciesPromise: Promise.resolve(undefined),
|
|
@@ -12,4 +12,4 @@ function createForkTsCheckerWebpackPluginState() {
|
|
|
12
12
|
webpackDevServerDoneTap: undefined,
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
|
-
exports.
|
|
15
|
+
exports.createPluginState = createPluginState;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type webpack from 'webpack';
|
|
2
|
-
import type { ForkTsCheckerWebpackPluginOptions } from './
|
|
2
|
+
import type { ForkTsCheckerWebpackPluginOptions } from './plugin-options';
|
|
3
3
|
declare class ForkTsCheckerWebpackPlugin {
|
|
4
4
|
/**
|
|
5
5
|
* Current version of the plugin
|
|
@@ -21,7 +21,7 @@ declare class ForkTsCheckerWebpackPlugin {
|
|
|
21
21
|
waiting: import("tapable").SyncHook<[webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
|
|
22
22
|
canceled: import("tapable").SyncHook<[webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
|
|
23
23
|
error: import("tapable").SyncHook<[Error, webpack.Compilation], void, import("tapable").UnsetAdditionalOptions>;
|
|
24
|
-
issues: import("tapable").SyncWaterfallHook<[import("./issue/
|
|
24
|
+
issues: import("tapable").SyncWaterfallHook<[import("./issue/issue").Issue[], webpack.Compilation | undefined], void>;
|
|
25
25
|
};
|
|
26
26
|
apply(compiler: webpack.Compiler): void;
|
|
27
27
|
}
|
package/lib/plugin.js
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
+
}) : function(o, v) {
|
|
12
|
+
o["default"] = v;
|
|
13
|
+
});
|
|
14
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
+
if (mod && mod.__esModule) return mod;
|
|
16
|
+
var result = {};
|
|
17
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
+
__setModuleDefault(result, mod);
|
|
19
|
+
return result;
|
|
20
|
+
};
|
|
21
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.ForkTsCheckerWebpackPlugin = void 0;
|
|
26
|
+
const path = __importStar(require("path"));
|
|
27
|
+
const cosmiconfig_1 = require("cosmiconfig");
|
|
28
|
+
const deepmerge_1 = __importDefault(require("deepmerge"));
|
|
29
|
+
const schema_utils_1 = require("schema-utils");
|
|
30
|
+
const tap_after_compile_to_add_dependencies_1 = require("./hooks/tap-after-compile-to-add-dependencies");
|
|
31
|
+
const tap_after_environment_to_patch_watching_1 = require("./hooks/tap-after-environment-to-patch-watching");
|
|
32
|
+
const tap_error_to_log_message_1 = require("./hooks/tap-error-to-log-message");
|
|
33
|
+
const tap_start_to_run_workers_1 = require("./hooks/tap-start-to-run-workers");
|
|
34
|
+
const tap_stop_to_terminate_workers_1 = require("./hooks/tap-stop-to-terminate-workers");
|
|
35
|
+
const plugin_config_1 = require("./plugin-config");
|
|
36
|
+
const plugin_hooks_1 = require("./plugin-hooks");
|
|
37
|
+
const plugin_options_json_1 = __importDefault(require("./plugin-options.json"));
|
|
38
|
+
const plugin_pools_1 = require("./plugin-pools");
|
|
39
|
+
const plugin_state_1 = require("./plugin-state");
|
|
40
|
+
const rpc_1 = require("./rpc");
|
|
41
|
+
const type_script_support_1 = require("./typescript/type-script-support");
|
|
42
|
+
class ForkTsCheckerWebpackPlugin {
|
|
43
|
+
constructor(options = {}) {
|
|
44
|
+
const explorerSync = cosmiconfig_1.cosmiconfigSync('fork-ts-checker');
|
|
45
|
+
const { config: externalOptions } = explorerSync.search() || {};
|
|
46
|
+
// first validate options directly passed to the constructor
|
|
47
|
+
const config = { name: 'ForkTsCheckerWebpackPlugin' };
|
|
48
|
+
schema_utils_1.validate(plugin_options_json_1.default, options, config);
|
|
49
|
+
this.options = deepmerge_1.default(externalOptions || {}, options || {});
|
|
50
|
+
// then validate merged options
|
|
51
|
+
schema_utils_1.validate(plugin_options_json_1.default, this.options, config);
|
|
52
|
+
}
|
|
53
|
+
static getCompilerHooks(compiler) {
|
|
54
|
+
return plugin_hooks_1.getPluginHooks(compiler);
|
|
55
|
+
}
|
|
56
|
+
apply(compiler) {
|
|
57
|
+
const config = plugin_config_1.createPluginConfig(compiler, this.options);
|
|
58
|
+
const state = plugin_state_1.createPluginState();
|
|
59
|
+
type_script_support_1.assertTypeScriptSupport(config.typescript);
|
|
60
|
+
const getIssuesWorker = rpc_1.createRpcWorker(path.resolve(__dirname, './typescript/worker/get-issues-worker.js'), config.typescript, config.typescript.memoryLimit);
|
|
61
|
+
const getDependenciesWorker = rpc_1.createRpcWorker(path.resolve(__dirname, './typescript/worker/get-dependencies-worker.js'), config.typescript);
|
|
62
|
+
tap_after_environment_to_patch_watching_1.tapAfterEnvironmentToPatchWatching(compiler, state);
|
|
63
|
+
tap_start_to_run_workers_1.tapStartToRunWorkers(compiler, getIssuesWorker, getDependenciesWorker, config, state);
|
|
64
|
+
tap_after_compile_to_add_dependencies_1.tapAfterCompileToAddDependencies(compiler, config, state);
|
|
65
|
+
tap_stop_to_terminate_workers_1.tapStopToTerminateWorkers(compiler, getIssuesWorker, getDependenciesWorker, state);
|
|
66
|
+
tap_error_to_log_message_1.tapErrorToLogMessage(compiler, config);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.ForkTsCheckerWebpackPlugin = ForkTsCheckerWebpackPlugin;
|
|
70
|
+
/**
|
|
71
|
+
* Current version of the plugin
|
|
72
|
+
*/
|
|
73
|
+
ForkTsCheckerWebpackPlugin.version = '7.0.0-alpha.12'; // will be replaced by the @semantic-release/exec
|
|
74
|
+
/**
|
|
75
|
+
* Default pools for the plugin concurrency limit
|
|
76
|
+
*/
|
|
77
|
+
ForkTsCheckerWebpackPlugin.issuesPool = plugin_pools_1.issuesPool;
|
|
78
|
+
ForkTsCheckerWebpackPlugin.dependenciesPool = plugin_pools_1.dependenciesPool;
|
|
79
|
+
/**
|
|
80
|
+
* @deprecated Use ForkTsCheckerWebpackPlugin.issuesPool instead
|
|
81
|
+
*/
|
|
82
|
+
ForkTsCheckerWebpackPlugin.pool = plugin_pools_1.issuesPool;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RpcExitError = exports.getRpcWorkerData = exports.createRpcWorker = exports.wrapRpc = exports.exposeRpc = void 0;
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "exposeRpc", { enumerable: true, get: function () { return
|
|
6
|
-
var
|
|
7
|
-
Object.defineProperty(exports, "wrapRpc", { enumerable: true, get: function () { return
|
|
8
|
-
var
|
|
9
|
-
Object.defineProperty(exports, "createRpcWorker", { enumerable: true, get: function () { return
|
|
10
|
-
Object.defineProperty(exports, "getRpcWorkerData", { enumerable: true, get: function () { return
|
|
11
|
-
var
|
|
12
|
-
Object.defineProperty(exports, "RpcExitError", { enumerable: true, get: function () { return
|
|
4
|
+
var expose_rpc_1 = require("./expose-rpc");
|
|
5
|
+
Object.defineProperty(exports, "exposeRpc", { enumerable: true, get: function () { return expose_rpc_1.exposeRpc; } });
|
|
6
|
+
var wrap_rpc_1 = require("./wrap-rpc");
|
|
7
|
+
Object.defineProperty(exports, "wrapRpc", { enumerable: true, get: function () { return wrap_rpc_1.wrapRpc; } });
|
|
8
|
+
var rpc_worker_1 = require("./rpc-worker");
|
|
9
|
+
Object.defineProperty(exports, "createRpcWorker", { enumerable: true, get: function () { return rpc_worker_1.createRpcWorker; } });
|
|
10
|
+
Object.defineProperty(exports, "getRpcWorkerData", { enumerable: true, get: function () { return rpc_worker_1.getRpcWorkerData; } });
|
|
11
|
+
var rpc_error_1 = require("./rpc-error");
|
|
12
|
+
Object.defineProperty(exports, "RpcExitError", { enumerable: true, get: function () { return rpc_error_1.RpcExitError; } });
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -22,7 +22,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
22
22
|
exports.getRpcWorkerData = exports.createRpcWorker = void 0;
|
|
23
23
|
const child_process = __importStar(require("child_process"));
|
|
24
24
|
const process = __importStar(require("process"));
|
|
25
|
-
const
|
|
25
|
+
const wrap_rpc_1 = require("./wrap-rpc");
|
|
26
26
|
const WORKER_DATA_ENV_KEY = 'WORKER_DATA';
|
|
27
27
|
function createRpcWorker(modulePath, data, memoryLimit) {
|
|
28
28
|
const options = {
|
|
@@ -44,7 +44,7 @@ function createRpcWorker(modulePath, data, memoryLimit) {
|
|
|
44
44
|
}
|
|
45
45
|
if (!(childProcess === null || childProcess === void 0 ? void 0 : childProcess.connected)) {
|
|
46
46
|
childProcess = child_process.fork(modulePath, options);
|
|
47
|
-
remoteMethod =
|
|
47
|
+
remoteMethod = wrap_rpc_1.wrapRpc(childProcess);
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
terminate() {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|