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
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,84 +0,0 @@
|
|
|
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
|
-
// type only dependency
|
|
31
|
-
// eslint-disable-next-line node/no-extraneous-import
|
|
32
|
-
const ForkTsCheckerWebpackPluginConfiguration_1 = require("./ForkTsCheckerWebpackPluginConfiguration");
|
|
33
|
-
const ForkTsCheckerWebpackPluginOptions_json_1 = __importDefault(require("./ForkTsCheckerWebpackPluginOptions.json"));
|
|
34
|
-
const ForkTsCheckerWebpackPluginState_1 = require("./ForkTsCheckerWebpackPluginState");
|
|
35
|
-
const pluginHooks_1 = require("./hooks/pluginHooks");
|
|
36
|
-
const pluginPools_1 = require("./hooks/pluginPools");
|
|
37
|
-
const tapAfterCompileToAddDependencies_1 = require("./hooks/tapAfterCompileToAddDependencies");
|
|
38
|
-
const tapAfterEnvironmentToPatchWatching_1 = require("./hooks/tapAfterEnvironmentToPatchWatching");
|
|
39
|
-
const tapErrorToLogMessage_1 = require("./hooks/tapErrorToLogMessage");
|
|
40
|
-
const tapStartToRunWorkers_1 = require("./hooks/tapStartToRunWorkers");
|
|
41
|
-
const tapStopToTerminateWorkers_1 = require("./hooks/tapStopToTerminateWorkers");
|
|
42
|
-
const TypeScriptSupport_1 = require("./typescript/TypeScriptSupport");
|
|
43
|
-
const rpc_1 = require("./utils/rpc");
|
|
44
|
-
class ForkTsCheckerWebpackPlugin {
|
|
45
|
-
constructor(options = {}) {
|
|
46
|
-
const explorerSync = cosmiconfig_1.cosmiconfigSync('fork-ts-checker');
|
|
47
|
-
const { config: externalOptions } = explorerSync.search() || {};
|
|
48
|
-
// first validate options directly passed to the constructor
|
|
49
|
-
const configuration = { name: 'ForkTsCheckerWebpackPlugin' };
|
|
50
|
-
schema_utils_1.validate(ForkTsCheckerWebpackPluginOptions_json_1.default, options, configuration);
|
|
51
|
-
this.options = deepmerge_1.default(externalOptions || {}, options || {});
|
|
52
|
-
// then validate merged options
|
|
53
|
-
schema_utils_1.validate(ForkTsCheckerWebpackPluginOptions_json_1.default, this.options, configuration);
|
|
54
|
-
}
|
|
55
|
-
static getCompilerHooks(compiler) {
|
|
56
|
-
return pluginHooks_1.getForkTsCheckerWebpackPluginHooks(compiler);
|
|
57
|
-
}
|
|
58
|
-
apply(compiler) {
|
|
59
|
-
const configuration = ForkTsCheckerWebpackPluginConfiguration_1.createForkTsCheckerWebpackPluginConfiguration(compiler, this.options);
|
|
60
|
-
const state = ForkTsCheckerWebpackPluginState_1.createForkTsCheckerWebpackPluginState();
|
|
61
|
-
TypeScriptSupport_1.assertTypeScriptSupport(configuration.typescript);
|
|
62
|
-
const getIssuesWorker = rpc_1.createRpcWorker(path.resolve(__dirname, './typescript/worker/get-issues-worker.js'), configuration.typescript, configuration.typescript.memoryLimit);
|
|
63
|
-
const getDependenciesWorker = rpc_1.createRpcWorker(path.resolve(__dirname, './typescript/worker/get-dependencies-worker.js'), configuration.typescript);
|
|
64
|
-
tapAfterEnvironmentToPatchWatching_1.tapAfterEnvironmentToPatchWatching(compiler, state);
|
|
65
|
-
tapStartToRunWorkers_1.tapStartToRunWorkers(compiler, getIssuesWorker, getDependenciesWorker, configuration, state);
|
|
66
|
-
tapAfterCompileToAddDependencies_1.tapAfterCompileToAddDependencies(compiler, configuration, state);
|
|
67
|
-
tapStopToTerminateWorkers_1.tapStopToTerminateWorkers(compiler, getIssuesWorker, getDependenciesWorker, state);
|
|
68
|
-
tapErrorToLogMessage_1.tapErrorToLogMessage(compiler, configuration);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
exports.ForkTsCheckerWebpackPlugin = ForkTsCheckerWebpackPlugin;
|
|
72
|
-
/**
|
|
73
|
-
* Current version of the plugin
|
|
74
|
-
*/
|
|
75
|
-
ForkTsCheckerWebpackPlugin.version = '7.0.0-alpha.11'; // will be replaced by the @semantic-release/exec
|
|
76
|
-
/**
|
|
77
|
-
* Default pools for the plugin concurrency limit
|
|
78
|
-
*/
|
|
79
|
-
ForkTsCheckerWebpackPlugin.issuesPool = pluginPools_1.issuesPool;
|
|
80
|
-
ForkTsCheckerWebpackPlugin.dependenciesPool = pluginPools_1.dependenciesPool;
|
|
81
|
-
/**
|
|
82
|
-
* @deprecated Use ForkTsCheckerWebpackPlugin.issuesPool instead
|
|
83
|
-
*/
|
|
84
|
-
ForkTsCheckerWebpackPlugin.pool = pluginPools_1.issuesPool;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type webpack from 'webpack';
|
|
2
|
-
import type { ForkTsCheckerWebpackPluginOptions } from './ForkTsCheckerWebpackPluginOptions';
|
|
3
|
-
import type { FormatterConfiguration } from './formatter';
|
|
4
|
-
import type { IssueConfiguration } from './issue/IssueConfiguration';
|
|
5
|
-
import type { LoggerConfiguration } from './logger/LoggerConfiguration';
|
|
6
|
-
import type { TypeScriptReporterConfiguration } from './typescript/TypeScriptReporterConfiguration';
|
|
7
|
-
interface ForkTsCheckerWebpackPluginConfiguration {
|
|
8
|
-
async: boolean;
|
|
9
|
-
typescript: TypeScriptReporterConfiguration;
|
|
10
|
-
issue: IssueConfiguration;
|
|
11
|
-
formatter: FormatterConfiguration;
|
|
12
|
-
logger: LoggerConfiguration;
|
|
13
|
-
}
|
|
14
|
-
declare function createForkTsCheckerWebpackPluginConfiguration(compiler: webpack.Compiler, options?: ForkTsCheckerWebpackPluginOptions): ForkTsCheckerWebpackPluginConfiguration;
|
|
15
|
-
export { ForkTsCheckerWebpackPluginConfiguration, createForkTsCheckerWebpackPluginConfiguration };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createForkTsCheckerWebpackPluginConfiguration = void 0;
|
|
4
|
-
const formatter_1 = require("./formatter");
|
|
5
|
-
const IssueConfiguration_1 = require("./issue/IssueConfiguration");
|
|
6
|
-
const LoggerConfiguration_1 = require("./logger/LoggerConfiguration");
|
|
7
|
-
const TypeScriptReporterConfiguration_1 = require("./typescript/TypeScriptReporterConfiguration");
|
|
8
|
-
function createForkTsCheckerWebpackPluginConfiguration(compiler, options = {}) {
|
|
9
|
-
return {
|
|
10
|
-
async: options.async === undefined ? compiler.options.mode === 'development' : options.async,
|
|
11
|
-
typescript: TypeScriptReporterConfiguration_1.createTypeScriptReporterConfiguration(compiler, options.typescript),
|
|
12
|
-
issue: IssueConfiguration_1.createIssueConfiguration(compiler, options.issue),
|
|
13
|
-
formatter: formatter_1.createFormatterConfiguration(options.formatter),
|
|
14
|
-
logger: LoggerConfiguration_1.createLoggerConfiguration(compiler, options.logger),
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
exports.createForkTsCheckerWebpackPluginConfiguration = createForkTsCheckerWebpackPluginConfiguration;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Formatter } from './Formatter';
|
|
2
|
-
import type { FormatterOptions } from './FormatterOptions';
|
|
3
|
-
declare type FormatterConfiguration = Formatter;
|
|
4
|
-
declare function createFormatterConfiguration(options: FormatterOptions | undefined): FormatterConfiguration;
|
|
5
|
-
export { FormatterConfiguration, createFormatterConfiguration };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type webpack from 'webpack';
|
|
2
|
-
import type { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration';
|
|
3
|
-
import type { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState';
|
|
4
|
-
declare function interceptDoneToGetWebpackDevServerTap(compiler: webpack.Compiler, configuration: ForkTsCheckerWebpackPluginConfiguration, state: ForkTsCheckerWebpackPluginState): void;
|
|
5
|
-
export { interceptDoneToGetWebpackDevServerTap };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type webpack from 'webpack';
|
|
2
|
-
import type { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration';
|
|
3
|
-
import type { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState';
|
|
4
|
-
declare function tapAfterCompileToAddDependencies(compiler: webpack.Compiler, configuration: ForkTsCheckerWebpackPluginConfiguration, state: ForkTsCheckerWebpackPluginState): void;
|
|
5
|
-
export { tapAfterCompileToAddDependencies };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type webpack from 'webpack';
|
|
2
|
-
import type { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration';
|
|
3
|
-
import type { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState';
|
|
4
|
-
declare function tapAfterCompileToGetIssues(compiler: webpack.Compiler, configuration: ForkTsCheckerWebpackPluginConfiguration, state: ForkTsCheckerWebpackPluginState): void;
|
|
5
|
-
export { tapAfterCompileToGetIssues };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type webpack from 'webpack';
|
|
2
|
-
import type { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration';
|
|
3
|
-
import type { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState';
|
|
4
|
-
declare function tapDoneToAsyncGetIssues(compiler: webpack.Compiler, configuration: ForkTsCheckerWebpackPluginConfiguration, state: ForkTsCheckerWebpackPluginState): void;
|
|
5
|
-
export { tapDoneToAsyncGetIssues };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type webpack from 'webpack';
|
|
2
|
-
import type { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration';
|
|
3
|
-
declare function tapErrorToLogMessage(compiler: webpack.Compiler, configuration: ForkTsCheckerWebpackPluginConfiguration): void;
|
|
4
|
-
export { tapErrorToLogMessage };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type webpack from 'webpack';
|
|
2
|
-
import type { IssueOptions } from './IssueOptions';
|
|
3
|
-
import type { IssuePredicate } from './IssuePredicate';
|
|
4
|
-
interface IssueConfiguration {
|
|
5
|
-
predicate: IssuePredicate;
|
|
6
|
-
}
|
|
7
|
-
declare function createIssueConfiguration(compiler: webpack.Compiler, options: IssueOptions | undefined): IssueConfiguration;
|
|
8
|
-
export { IssueConfiguration, createIssueConfiguration };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createIssueConfiguration = void 0;
|
|
4
|
-
const IssueMatch_1 = require("./IssueMatch");
|
|
5
|
-
const IssuePredicate_1 = require("./IssuePredicate");
|
|
6
|
-
function createIssuePredicateFromOption(context, option) {
|
|
7
|
-
if (Array.isArray(option)) {
|
|
8
|
-
return IssuePredicate_1.composeIssuePredicates(option.map((option) => typeof option === 'function' ? option : IssueMatch_1.createIssuePredicateFromIssueMatch(context, option)));
|
|
9
|
-
}
|
|
10
|
-
return typeof option === 'function'
|
|
11
|
-
? option
|
|
12
|
-
: IssueMatch_1.createIssuePredicateFromIssueMatch(context, option);
|
|
13
|
-
}
|
|
14
|
-
function createIssueConfiguration(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
|
-
: IssuePredicate_1.createTrivialIssuePredicate(true);
|
|
22
|
-
const exclude = options.exclude
|
|
23
|
-
? createIssuePredicateFromOption(context, options.exclude)
|
|
24
|
-
: IssuePredicate_1.createTrivialIssuePredicate(false);
|
|
25
|
-
return {
|
|
26
|
-
predicate: (issue) => include(issue) && !exclude(issue),
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
exports.createIssueConfiguration = createIssueConfiguration;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type webpack from 'webpack';
|
|
2
|
-
import type Logger from './Logger';
|
|
3
|
-
import type LoggerOptions from './LoggerOptions';
|
|
4
|
-
interface LoggerConfiguration {
|
|
5
|
-
infrastructure: Logger;
|
|
6
|
-
issues: Logger;
|
|
7
|
-
devServer: boolean;
|
|
8
|
-
}
|
|
9
|
-
declare function createLoggerConfiguration(compiler: webpack.Compiler, options: LoggerOptions | undefined): LoggerConfiguration;
|
|
10
|
-
export { LoggerConfiguration, createLoggerConfiguration };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createLoggerConfiguration = void 0;
|
|
4
|
-
const LoggerFactory_1 = require("./LoggerFactory");
|
|
5
|
-
function createLoggerConfiguration(compiler, options) {
|
|
6
|
-
return {
|
|
7
|
-
infrastructure: LoggerFactory_1.createLogger((options && options.infrastructure) || 'webpack-infrastructure', compiler),
|
|
8
|
-
issues: LoggerFactory_1.createLogger((options && options.issues) || 'console', compiler),
|
|
9
|
-
devServer: (options === null || options === void 0 ? void 0 : options.devServer) !== false,
|
|
10
|
-
};
|
|
11
|
-
}
|
|
12
|
-
exports.createLoggerConfiguration = createLoggerConfiguration;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type webpack from 'webpack';
|
|
2
|
-
import type { TypeScriptVueExtensionConfiguration } from './extension/vue/TypeScriptVueExtensionConfiguration';
|
|
3
|
-
import type { TypeScriptConfigurationOverwrite } from './TypeScriptConfigurationOverwrite';
|
|
4
|
-
import type { TypeScriptDiagnosticsOptions } from './TypeScriptDiagnosticsOptions';
|
|
5
|
-
import type { TypeScriptReporterOptions } from './TypeScriptReporterOptions';
|
|
6
|
-
interface TypeScriptReporterConfiguration {
|
|
7
|
-
enabled: boolean;
|
|
8
|
-
memoryLimit: number;
|
|
9
|
-
configFile: string;
|
|
10
|
-
configOverwrite: TypeScriptConfigurationOverwrite;
|
|
11
|
-
build: boolean;
|
|
12
|
-
context: string;
|
|
13
|
-
mode: 'readonly' | 'write-tsbuildinfo' | 'write-references';
|
|
14
|
-
diagnosticOptions: TypeScriptDiagnosticsOptions;
|
|
15
|
-
extensions: {
|
|
16
|
-
vue: TypeScriptVueExtensionConfiguration;
|
|
17
|
-
};
|
|
18
|
-
profile: boolean;
|
|
19
|
-
typescriptPath: string;
|
|
20
|
-
}
|
|
21
|
-
declare function createTypeScriptReporterConfiguration(compiler: webpack.Compiler, options: TypeScriptReporterOptions | undefined): TypeScriptReporterConfiguration;
|
|
22
|
-
export { createTypeScriptReporterConfiguration, TypeScriptReporterConfiguration };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { TypeScriptExtension } from '../TypeScriptExtension';
|
|
2
|
-
import type { TypeScriptVueExtensionConfiguration } from './TypeScriptVueExtensionConfiguration';
|
|
3
|
-
declare function createTypeScriptVueExtension(configuration: TypeScriptVueExtensionConfiguration): TypeScriptExtension;
|
|
4
|
-
export { createTypeScriptVueExtension };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { TypeScriptVueExtensionOptions } from './TypeScriptVueExtensionOptions';
|
|
2
|
-
interface TypeScriptVueExtensionConfiguration {
|
|
3
|
-
enabled: boolean;
|
|
4
|
-
compiler: string;
|
|
5
|
-
}
|
|
6
|
-
declare function createTypeScriptVueExtensionConfiguration(options: TypeScriptVueExtensionOptions | undefined): TypeScriptVueExtensionConfiguration;
|
|
7
|
-
export { TypeScriptVueExtensionConfiguration, createTypeScriptVueExtensionConfiguration };
|
package/lib/utils/rpc/index.d.ts
DELETED