fork-ts-checker-webpack-plugin 7.0.0-alpha.6 → 7.0.0
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 +39 -25
- package/lib/files-change.d.ts +17 -0
- package/lib/{reporter/FilesChange.js → files-change.js} +20 -13
- package/lib/{reporter/FilesMatch.d.ts → files-match.d.ts} +1 -0
- package/lib/{ForkTsCheckerWebpackPluginOptions.js → files-match.js} +0 -0
- 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} +4 -4
- 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} +2 -2
- package/lib/formatter/{Formatter.js → formatter-options.js} +0 -0
- package/lib/formatter/{Formatter.d.ts → formatter.d.ts} +1 -1
- package/lib/formatter/{FormatterOptions.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} +3 -3
- package/lib/hooks/intercept-done-to-get-dev-server-tap.d.ts +5 -0
- package/lib/hooks/intercept-done-to-get-dev-server-tap.js +18 -0
- 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} +4 -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} +9 -6
- package/lib/hooks/{tapAfterEnvironmentToPatchWatching.d.ts → tap-after-environment-to-patch-watching.d.ts} +2 -2
- package/lib/hooks/{tapAfterEnvironmentToPatchWatching.js → tap-after-environment-to-patch-watching.js} +8 -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} +20 -21
- package/lib/hooks/tap-error-to-log-message.d.ts +4 -0
- package/lib/hooks/{tapErrorToLogMessage.js → tap-error-to-log-message.js} +8 -8
- package/lib/hooks/tap-start-to-run-workers.d.ts +8 -0
- package/lib/hooks/tap-start-to-run-workers.js +95 -0
- package/lib/hooks/tap-stop-to-terminate-workers.d.ts +5 -0
- package/lib/hooks/tap-stop-to-terminate-workers.js +26 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -2
- package/lib/infrastructure-logger.d.ts +9 -0
- package/lib/infrastructure-logger.js +14 -0
- 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} +2 -2
- package/lib/issue/{IssueMatch.js → issue-match.js} +3 -3
- package/lib/issue/{IssueOptions.d.ts → issue-options.d.ts} +2 -2
- package/lib/issue/{IssueOptions.js → 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} +1 -1
- 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} +5 -5
- package/lib/issue/{Issue.d.ts → issue.d.ts} +2 -2
- package/lib/issue/{Issue.js → issue.js} +5 -5
- package/lib/{logger/Logger.d.ts → logger.d.ts} +1 -2
- package/lib/{logger/Logger.js → logger.js} +0 -0
- package/lib/plugin-config.d.ts +16 -0
- package/lib/plugin-config.js +17 -0
- package/lib/{hooks/pluginHooks.d.ts → plugin-hooks.d.ts} +9 -9
- package/lib/{hooks/pluginHooks.js → plugin-hooks.js} +8 -8
- package/lib/plugin-options.d.ts +13 -0
- package/lib/{logger/LoggerOptions.js → plugin-options.js} +0 -0
- package/lib/plugin-options.json +224 -0
- package/lib/plugin-pools.d.ts +4 -0
- package/lib/plugin-pools.js +28 -0
- package/lib/plugin-state.d.ts +14 -0
- package/lib/{ForkTsCheckerWebpackPluginState.js → plugin-state.js} +4 -4
- package/lib/{ForkTsCheckerWebpackPlugin.d.ts → plugin.d.ts} +12 -8
- package/lib/plugin.js +82 -0
- package/lib/rpc/expose-rpc.d.ts +1 -0
- package/lib/rpc/expose-rpc.js +78 -0
- package/lib/rpc/index.d.ts +5 -7
- package/lib/rpc/index.js +10 -17
- package/lib/rpc/{rpc-ipc/error/RpcIpcMessagePortClosedError.d.ts → rpc-error.d.ts} +2 -3
- package/lib/rpc/rpc-error.js +12 -0
- package/lib/rpc/rpc-worker.d.ts +13 -0
- package/lib/rpc/rpc-worker.js +79 -0
- package/lib/rpc/types.d.ts +19 -0
- package/lib/{reporter/FilesMatch.js → rpc/types.js} +0 -0
- package/lib/rpc/wrap-rpc.d.ts +4 -0
- package/lib/rpc/wrap-rpc.js +96 -0
- package/lib/{typescript-reporter/extension/TypeScriptEmbeddedExtension.d.ts → typescript/extension/type-script-embedded-extension.d.ts} +1 -1
- package/lib/{typescript-reporter/extension/TypeScriptEmbeddedExtension.js → typescript/extension/type-script-embedded-extension.js} +3 -3
- package/lib/{typescript-reporter/extension/TypeScriptExtension.d.ts → typescript/extension/type-script-extension.d.ts} +3 -3
- package/lib/{reporter/Report.js → typescript/extension/type-script-extension.js} +0 -0
- package/lib/typescript/extension/vue/type-script-vue-extension-config.d.ts +7 -0
- package/lib/{typescript-reporter/extension/vue/TypeScriptVueExtensionConfiguration.js → typescript/extension/vue/type-script-vue-extension-config.js} +3 -3
- package/lib/{typescript-reporter/extension/vue/TypeScriptVueExtensionOptions.d.ts → typescript/extension/vue/type-script-vue-extension-options.d.ts} +0 -0
- package/lib/{reporter/Reporter.js → typescript/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-reporter/extension/vue/TypeScriptVueExtensionSupport.js → typescript/extension/vue/type-script-vue-extension-support.js} +3 -3
- package/lib/typescript/extension/vue/type-script-vue-extension.d.ts +4 -0
- package/lib/{typescript-reporter/extension/vue/TypeScriptVueExtension.js → typescript/extension/vue/type-script-vue-extension.js} +4 -4
- package/lib/{typescript-reporter → typescript}/extension/vue/types/vue-template-compiler.d.ts +0 -0
- package/lib/{typescript-reporter → typescript}/extension/vue/types/vue-template-compiler.js +0 -0
- package/lib/{typescript-reporter → typescript}/extension/vue/types/vue__compiler-sfc.d.ts +0 -0
- package/lib/{typescript-reporter → typescript}/extension/vue/types/vue__compiler-sfc.js +0 -0
- package/lib/{typescript-reporter/TypeScriptConfigurationOverwrite.d.ts → typescript/type-script-config-overwrite.d.ts} +2 -2
- package/lib/{rpc/RpcHost.js → typescript/type-script-config-overwrite.js} +0 -0
- package/lib/{typescript-reporter/TypeScriptDiagnosticsOptions.d.ts → typescript/type-script-diagnostics-options.d.ts} +0 -0
- package/lib/{rpc/RpcMessagePort.js → typescript/type-script-diagnostics-options.js} +0 -0
- package/lib/typescript/type-script-support.d.ts +3 -0
- package/lib/{typescript-reporter/TypeScriptSupport.js → typescript/type-script-support.js} +14 -15
- package/lib/typescript/type-script-worker-config.d.ts +22 -0
- package/lib/{typescript-reporter/TypeScriptReporterConfiguration.js → typescript/type-script-worker-config.js} +5 -5
- package/lib/typescript/type-script-worker-options.d.ts +18 -0
- package/lib/{rpc/RpcProcedure.js → typescript/type-script-worker-options.js} +0 -0
- package/lib/typescript/worker/get-dependencies-worker.d.ts +5 -0
- package/lib/typescript/worker/get-dependencies-worker.js +18 -0
- package/lib/typescript/worker/get-issues-worker.d.ts +5 -0
- package/lib/typescript/worker/get-issues-worker.js +75 -0
- package/lib/typescript/worker/lib/artifacts.d.ts +4 -0
- package/lib/typescript/worker/lib/artifacts.js +90 -0
- package/lib/typescript/worker/lib/config.d.ts +14 -0
- package/lib/typescript/worker/lib/config.js +111 -0
- package/lib/typescript/worker/lib/dependencies.d.ts +3 -0
- package/lib/typescript/worker/lib/dependencies.js +87 -0
- package/lib/typescript/worker/lib/diagnostics.d.ts +7 -0
- package/lib/typescript/worker/lib/diagnostics.js +100 -0
- package/lib/typescript/worker/lib/extensions.d.ts +3 -0
- package/lib/typescript/worker/lib/extensions.js +11 -0
- package/lib/{typescript-reporter/file-system/FileSystem.d.ts → typescript/worker/lib/file-system/file-system.d.ts} +2 -3
- package/lib/{typescript-reporter/TypeScriptConfigurationOverwrite.js → typescript/worker/lib/file-system/file-system.js} +0 -0
- package/lib/typescript/worker/lib/file-system/mem-file-system.d.ts +5 -0
- package/lib/typescript/worker/lib/file-system/mem-file-system.js +78 -0
- package/lib/typescript/worker/lib/file-system/passive-file-system.d.ts +5 -0
- package/lib/typescript/worker/lib/file-system/passive-file-system.js +65 -0
- package/lib/typescript/worker/lib/file-system/real-file-system.d.ts +5 -0
- package/lib/typescript/worker/lib/file-system/real-file-system.js +187 -0
- package/lib/typescript/worker/lib/host/compiler-host.d.ts +2 -0
- package/lib/typescript/worker/lib/host/compiler-host.js +17 -0
- package/lib/typescript/worker/lib/host/watch-compiler-host.d.ts +2 -0
- package/lib/typescript/worker/lib/host/watch-compiler-host.js +32 -0
- package/lib/typescript/worker/lib/host/watch-solution-builder-host.d.ts +2 -0
- package/lib/typescript/worker/lib/host/watch-solution-builder-host.js +54 -0
- package/lib/typescript/worker/lib/performance.d.ts +3 -0
- package/lib/typescript/worker/lib/performance.js +32 -0
- package/lib/typescript/worker/lib/program/program.d.ts +2 -0
- package/lib/typescript/worker/lib/program/program.js +32 -0
- package/lib/typescript/worker/lib/program/solution-builder.d.ts +2 -0
- package/lib/typescript/worker/lib/program/solution-builder.js +39 -0
- package/lib/typescript/worker/lib/program/watch-program.d.ts +3 -0
- package/lib/typescript/worker/lib/program/watch-program.js +49 -0
- package/lib/{typescript-reporter/reporter/ControlledTypeScriptSystem.d.ts → typescript/worker/lib/system.d.ts} +5 -7
- package/lib/typescript/worker/lib/system.js +222 -0
- package/lib/typescript/worker/lib/tracing.d.ts +4 -0
- package/lib/typescript/worker/lib/tracing.js +28 -0
- package/lib/typescript/worker/lib/tsbuildinfo.d.ts +4 -0
- package/lib/typescript/worker/lib/tsbuildinfo.js +92 -0
- package/lib/typescript/worker/lib/typescript.d.ts +2 -0
- package/lib/typescript/worker/lib/typescript.js +6 -0
- package/lib/typescript/worker/lib/worker-config.d.ts +2 -0
- package/lib/typescript/worker/lib/worker-config.js +5 -0
- 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/pool.d.ts +1 -1
- package/lib/utils/async/pool.js +3 -14
- 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} +7 -7
- package/lib/watch/{InclusiveNodeWatchFileSystem.js → inclusive-node-watch-file-system.js} +54 -21
- package/lib/watch/{WatchFileSystem.d.ts → watch-file-system.d.ts} +3 -3
- package/lib/{typescript-reporter/TypeScriptDiagnosticsOptions.js → watch/watch-file-system.js} +0 -0
- package/package.json +42 -35
- package/lib/ForkTsCheckerWebpackPlugin.js +0 -67
- package/lib/ForkTsCheckerWebpackPluginConfiguration.d.ts +0 -15
- package/lib/ForkTsCheckerWebpackPluginConfiguration.js +0 -17
- package/lib/ForkTsCheckerWebpackPluginOptions.d.ts +0 -12
- package/lib/ForkTsCheckerWebpackPluginOptions.json +0 -255
- package/lib/ForkTsCheckerWebpackPluginState.d.ts +0 -14
- package/lib/error/OperationCanceledError.d.ts +0 -4
- package/lib/error/OperationCanceledError.js +0 -10
- package/lib/formatter/FormatterConfiguration.d.ts +0 -5
- package/lib/hooks/interceptDoneToGetWebpackDevServerTap.d.ts +0 -5
- package/lib/hooks/interceptDoneToGetWebpackDevServerTap.js +0 -17
- 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/hooks/tapStartToConnectAndRunReporter.d.ts +0 -6
- package/lib/hooks/tapStartToConnectAndRunReporter.js +0 -108
- package/lib/hooks/tapStopToDisconnectReporter.d.ts +0 -5
- package/lib/hooks/tapStopToDisconnectReporter.js +0 -28
- 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/logger/LoggerFactory.d.ts +0 -5
- package/lib/logger/LoggerFactory.js +0 -21
- package/lib/logger/LoggerOptions.d.ts +0 -8
- package/lib/logger/PartialLogger.d.ts +0 -4
- package/lib/logger/PartialLogger.js +0 -11
- package/lib/logger/WebpackInfrastructureLogger.d.ts +0 -4
- package/lib/logger/WebpackInfrastructureLogger.js +0 -13
- package/lib/profile/Performance.d.ts +0 -11
- package/lib/profile/Performance.js +0 -63
- package/lib/reporter/AggregatedReporter.d.ts +0 -6
- package/lib/reporter/AggregatedReporter.js +0 -61
- package/lib/reporter/FilesChange.d.ts +0 -16
- package/lib/reporter/Report.d.ts +0 -8
- package/lib/reporter/Reporter.d.ts +0 -6
- package/lib/reporter/index.d.ts +0 -7
- package/lib/reporter/index.js +0 -19
- package/lib/reporter/reporter-rpc/ReporterRpcClient.d.ts +0 -10
- package/lib/reporter/reporter-rpc/ReporterRpcClient.js +0 -75
- package/lib/reporter/reporter-rpc/ReporterRpcProcedure.d.ts +0 -13
- package/lib/reporter/reporter-rpc/ReporterRpcProcedure.js +0 -15
- package/lib/reporter/reporter-rpc/ReporterRpcService.d.ts +0 -9
- package/lib/reporter/reporter-rpc/ReporterRpcService.js +0 -77
- package/lib/rpc/RpcClient.d.ts +0 -10
- package/lib/rpc/RpcClient.js +0 -79
- package/lib/rpc/RpcHost.d.ts +0 -6
- package/lib/rpc/RpcMessage.d.ts +0 -26
- package/lib/rpc/RpcMessage.js +0 -48
- package/lib/rpc/RpcMessageChannel.d.ts +0 -10
- package/lib/rpc/RpcMessageChannel.js +0 -50
- package/lib/rpc/RpcMessagePort.d.ts +0 -14
- package/lib/rpc/RpcProcedure.d.ts +0 -5
- package/lib/rpc/RpcService.d.ts +0 -12
- package/lib/rpc/RpcService.js +0 -64
- package/lib/rpc/error/RpcMessagePortClosedError.d.ts +0 -3
- package/lib/rpc/error/RpcMessagePortClosedError.js +0 -6
- package/lib/rpc/error/RpcRemoteError.d.ts +0 -6
- package/lib/rpc/error/RpcRemoteError.js +0 -18
- package/lib/rpc/rpc-ipc/ProcessLike.d.ts +0 -12
- package/lib/rpc/rpc-ipc/ProcessLike.js +0 -3
- package/lib/rpc/rpc-ipc/RpcIpcMessageChannel.d.ts +0 -3
- package/lib/rpc/rpc-ipc/RpcIpcMessageChannel.js +0 -11
- package/lib/rpc/rpc-ipc/RpcIpcMessagePort.d.ts +0 -5
- package/lib/rpc/rpc-ipc/RpcIpcMessagePort.js +0 -151
- package/lib/rpc/rpc-ipc/error/RpcIpcMessagePortClosedError.js +0 -13
- package/lib/rpc/rpc-ipc/index.d.ts +0 -2
- package/lib/rpc/rpc-ipc/index.js +0 -14
- package/lib/typescript-reporter/TypeScriptReporterConfiguration.d.ts +0 -22
- package/lib/typescript-reporter/TypeScriptReporterOptions.d.ts +0 -19
- package/lib/typescript-reporter/TypeScriptReporterOptions.js +0 -2
- package/lib/typescript-reporter/TypeScriptSupport.d.ts +0 -3
- package/lib/typescript-reporter/extension/TypeScriptExtension.js +0 -2
- package/lib/typescript-reporter/extension/vue/TypeScriptVueExtension.d.ts +0 -4
- package/lib/typescript-reporter/extension/vue/TypeScriptVueExtensionConfiguration.d.ts +0 -7
- package/lib/typescript-reporter/extension/vue/TypeScriptVueExtensionOptions.js +0 -2
- package/lib/typescript-reporter/extension/vue/TypeScriptVueExtensionSupport.d.ts +0 -3
- package/lib/typescript-reporter/file-system/FileSystem.js +0 -2
- package/lib/typescript-reporter/file-system/MemFileSystem.d.ts +0 -8
- package/lib/typescript-reporter/file-system/MemFileSystem.js +0 -82
- package/lib/typescript-reporter/file-system/PassiveFileSystem.d.ts +0 -9
- package/lib/typescript-reporter/file-system/PassiveFileSystem.js +0 -69
- package/lib/typescript-reporter/file-system/RealFileSystem.d.ts +0 -8
- package/lib/typescript-reporter/file-system/RealFileSystem.js +0 -180
- package/lib/typescript-reporter/issue/TypeScriptIssueFactory.d.ts +0 -4
- package/lib/typescript-reporter/issue/TypeScriptIssueFactory.js +0 -57
- package/lib/typescript-reporter/profile/TypeScriptPerformance.d.ts +0 -10
- package/lib/typescript-reporter/profile/TypeScriptPerformance.js +0 -34
- package/lib/typescript-reporter/reporter/ControlledCompilerHost.d.ts +0 -5
- package/lib/typescript-reporter/reporter/ControlledCompilerHost.js +0 -14
- package/lib/typescript-reporter/reporter/ControlledTypeScriptSystem.js +0 -214
- package/lib/typescript-reporter/reporter/ControlledWatchCompilerHost.d.ts +0 -5
- package/lib/typescript-reporter/reporter/ControlledWatchCompilerHost.js +0 -29
- package/lib/typescript-reporter/reporter/ControlledWatchSolutionBuilderHost.d.ts +0 -5
- package/lib/typescript-reporter/reporter/ControlledWatchSolutionBuilderHost.js +0 -71
- package/lib/typescript-reporter/reporter/TypeScriptConfigurationParser.d.ts +0 -8
- package/lib/typescript-reporter/reporter/TypeScriptConfigurationParser.js +0 -151
- package/lib/typescript-reporter/reporter/TypeScriptReporter.d.ts +0 -4
- package/lib/typescript-reporter/reporter/TypeScriptReporter.js +0 -396
- package/lib/typescript-reporter/reporter/TypeScriptReporterRpcClient.d.ts +0 -4
- package/lib/typescript-reporter/reporter/TypeScriptReporterRpcClient.js +0 -14
- package/lib/typescript-reporter/reporter/TypeScriptReporterRpcService.d.ts +0 -1
- package/lib/typescript-reporter/reporter/TypeScriptReporterRpcService.js +0 -11
- 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/watch/WatchFileSystem.js +0 -2
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { EventEmitter } from 'events';
|
|
3
|
-
import webpack from 'webpack';
|
|
2
|
+
import type { EventEmitter } from 'events';
|
|
3
|
+
import type webpack from 'webpack';
|
|
4
4
|
interface Watchpack extends EventEmitter {
|
|
5
5
|
_onChange(item: string, mtime: number, file: string, type?: string): void;
|
|
6
6
|
_onRemove(item: string, file: string, type?: string): void;
|
|
7
7
|
}
|
|
8
8
|
declare type Watch = webpack.Compiler['watchFileSystem']['watch'];
|
|
9
9
|
interface WatchFileSystem {
|
|
10
|
-
watcher
|
|
10
|
+
watcher?: Watchpack;
|
|
11
11
|
wfs?: {
|
|
12
12
|
watcher: Watchpack;
|
|
13
13
|
};
|
package/lib/{typescript-reporter/TypeScriptDiagnosticsOptions.js → watch/watch-file-system.js}
RENAMED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fork-ts-checker-webpack-plugin",
|
|
3
|
-
"version": "7.0.0
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Runs typescript type checker and linter on separate process.",
|
|
5
5
|
"keywords": [
|
|
6
|
-
"fast",
|
|
7
|
-
"fork",
|
|
8
|
-
"linter",
|
|
9
6
|
"webpack",
|
|
10
7
|
"plugin",
|
|
11
|
-
"ts-loader",
|
|
12
8
|
"typescript",
|
|
13
|
-
"
|
|
9
|
+
"typecheck",
|
|
10
|
+
"ts-loader",
|
|
11
|
+
"webpack",
|
|
12
|
+
"fork",
|
|
13
|
+
"fast"
|
|
14
14
|
],
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues"
|
|
@@ -55,24 +55,30 @@
|
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@babel/code-frame": "^7.
|
|
58
|
+
"@babel/code-frame": "^7.16.7",
|
|
59
59
|
"chalk": "^4.1.2",
|
|
60
|
-
"chokidar": "^3.5.
|
|
61
|
-
"cosmiconfig": "^7.0.
|
|
60
|
+
"chokidar": "^3.5.3",
|
|
61
|
+
"cosmiconfig": "^7.0.1",
|
|
62
62
|
"deepmerge": "^4.2.2",
|
|
63
63
|
"fs-extra": "^10.0.0",
|
|
64
|
-
"
|
|
65
|
-
"memfs": "^3.2.2",
|
|
64
|
+
"memfs": "^3.4.1",
|
|
66
65
|
"minimatch": "^3.0.4",
|
|
67
|
-
"schema-utils": "
|
|
66
|
+
"schema-utils": "4.0.0",
|
|
68
67
|
"semver": "^7.3.5",
|
|
69
|
-
"tapable": "^2.
|
|
68
|
+
"tapable": "^2.2.1"
|
|
70
69
|
},
|
|
71
70
|
"peerDependencies": {
|
|
72
|
-
"
|
|
71
|
+
"typescript": ">3.6.0",
|
|
72
|
+
"webpack": "^5.11.0",
|
|
73
|
+
"vue-template-compiler": "*"
|
|
74
|
+
},
|
|
75
|
+
"peerDependenciesMeta": {
|
|
76
|
+
"vue-template-compiler": {
|
|
77
|
+
"optional": true
|
|
78
|
+
}
|
|
73
79
|
},
|
|
74
80
|
"devDependencies": {
|
|
75
|
-
"@commitlint/config-conventional": "^
|
|
81
|
+
"@commitlint/config-conventional": "^16.0.0",
|
|
76
82
|
"@semantic-release/commit-analyzer": "^8.0.1",
|
|
77
83
|
"@semantic-release/exec": "^5.0.0",
|
|
78
84
|
"@semantic-release/github": "^7.2.3",
|
|
@@ -80,37 +86,38 @@
|
|
|
80
86
|
"@semantic-release/release-notes-generator": "^9.0.3",
|
|
81
87
|
"@types/babel__code-frame": "^7.0.3",
|
|
82
88
|
"@types/cross-spawn": "^6.0.2",
|
|
83
|
-
"@types/fs-extra": "^9.0.
|
|
84
|
-
"@types/jest": "^
|
|
89
|
+
"@types/fs-extra": "^9.0.13",
|
|
90
|
+
"@types/jest": "^27.4.0",
|
|
85
91
|
"@types/json-schema": "^7.0.9",
|
|
86
92
|
"@types/minimatch": "^3.0.5",
|
|
87
93
|
"@types/mock-fs": "^4.13.1",
|
|
88
94
|
"@types/node": "^16.4.13",
|
|
89
|
-
"@types/rimraf": "^3.0.
|
|
90
|
-
"@types/semver": "^7.3.
|
|
91
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
92
|
-
"@typescript-eslint/parser": "^
|
|
93
|
-
"commitlint": "^
|
|
95
|
+
"@types/rimraf": "^3.0.2",
|
|
96
|
+
"@types/semver": "^7.3.9",
|
|
97
|
+
"@typescript-eslint/eslint-plugin": "^5.10.1",
|
|
98
|
+
"@typescript-eslint/parser": "^5.10.1",
|
|
99
|
+
"commitlint": "^16.1.0",
|
|
94
100
|
"cross-env": "^7.0.3",
|
|
95
|
-
"eslint": "^
|
|
96
|
-
"eslint-
|
|
101
|
+
"eslint": "^8.8.0",
|
|
102
|
+
"eslint-plugin-import": "^2.25.4",
|
|
97
103
|
"eslint-plugin-node": "^11.1.0",
|
|
98
|
-
"eslint-plugin-prettier": "^
|
|
99
|
-
"git-cz": "^4.
|
|
100
|
-
"husky": "^7.0.
|
|
101
|
-
"jest": "^27.
|
|
102
|
-
"jest-circus": "^27.
|
|
103
|
-
"jest-environment-node": "^27.
|
|
104
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
105
|
+
"git-cz": "^4.8.0",
|
|
106
|
+
"husky": "^7.0.4",
|
|
107
|
+
"jest": "^27.4.7",
|
|
108
|
+
"jest-circus": "^27.4.6",
|
|
109
|
+
"jest-environment-node": "^27.4.6",
|
|
110
|
+
"json-schema": "^0.3.0",
|
|
104
111
|
"karton": "^0.4.1",
|
|
105
112
|
"lint-staged": "^11.1.2",
|
|
106
|
-
"mock-fs": "^5.
|
|
107
|
-
"prettier": "^2.
|
|
113
|
+
"mock-fs": "^5.1.2",
|
|
114
|
+
"prettier": "^2.5.1",
|
|
108
115
|
"rimraf": "^3.0.2",
|
|
109
116
|
"semantic-release": "^17.4.4",
|
|
110
117
|
"strip-ansi": "^6.0.0",
|
|
111
|
-
"ts-jest": "^27.
|
|
112
|
-
"typescript": "^4.
|
|
113
|
-
"webpack": "^5.
|
|
118
|
+
"ts-jest": "^27.1.3",
|
|
119
|
+
"typescript": "^4.5.5",
|
|
120
|
+
"webpack": "^5.67.0"
|
|
114
121
|
},
|
|
115
122
|
"engines": {
|
|
116
123
|
"node": ">=12.13.0",
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.ForkTsCheckerWebpackPlugin = void 0;
|
|
7
|
-
const schema_utils_1 = require("schema-utils");
|
|
8
|
-
const cosmiconfig_1 = require("cosmiconfig");
|
|
9
|
-
const deepmerge_1 = __importDefault(require("deepmerge"));
|
|
10
|
-
const ForkTsCheckerWebpackPluginOptions_json_1 = __importDefault(require("./ForkTsCheckerWebpackPluginOptions.json"));
|
|
11
|
-
const ForkTsCheckerWebpackPluginConfiguration_1 = require("./ForkTsCheckerWebpackPluginConfiguration");
|
|
12
|
-
const ForkTsCheckerWebpackPluginState_1 = require("./ForkTsCheckerWebpackPluginState");
|
|
13
|
-
const reporter_1 = require("./reporter");
|
|
14
|
-
const TypeScriptSupport_1 = require("./typescript-reporter/TypeScriptSupport");
|
|
15
|
-
const TypeScriptReporterRpcClient_1 = require("./typescript-reporter/reporter/TypeScriptReporterRpcClient");
|
|
16
|
-
const tapStartToConnectAndRunReporter_1 = require("./hooks/tapStartToConnectAndRunReporter");
|
|
17
|
-
const tapStopToDisconnectReporter_1 = require("./hooks/tapStopToDisconnectReporter");
|
|
18
|
-
const tapAfterCompileToAddDependencies_1 = require("./hooks/tapAfterCompileToAddDependencies");
|
|
19
|
-
const tapErrorToLogMessage_1 = require("./hooks/tapErrorToLogMessage");
|
|
20
|
-
const pluginHooks_1 = require("./hooks/pluginHooks");
|
|
21
|
-
const tapAfterEnvironmentToPatchWatching_1 = require("./hooks/tapAfterEnvironmentToPatchWatching");
|
|
22
|
-
const pool_1 = require("./utils/async/pool");
|
|
23
|
-
const os_1 = __importDefault(require("os"));
|
|
24
|
-
class ForkTsCheckerWebpackPlugin {
|
|
25
|
-
constructor(options = {}) {
|
|
26
|
-
const explorerSync = cosmiconfig_1.cosmiconfigSync('fork-ts-checker');
|
|
27
|
-
const { config: externalOptions } = explorerSync.search() || {};
|
|
28
|
-
// first validate options directly passed to the constructor
|
|
29
|
-
const configuration = { name: 'ForkTsCheckerWebpackPlugin' };
|
|
30
|
-
schema_utils_1.validate(ForkTsCheckerWebpackPluginOptions_json_1.default, options, configuration);
|
|
31
|
-
this.options = deepmerge_1.default(externalOptions || {}, options || {});
|
|
32
|
-
// then validate merged options
|
|
33
|
-
schema_utils_1.validate(ForkTsCheckerWebpackPluginOptions_json_1.default, this.options, configuration);
|
|
34
|
-
}
|
|
35
|
-
static getCompilerHooks(compiler) {
|
|
36
|
-
return pluginHooks_1.getForkTsCheckerWebpackPluginHooks(compiler);
|
|
37
|
-
}
|
|
38
|
-
apply(compiler) {
|
|
39
|
-
const configuration = ForkTsCheckerWebpackPluginConfiguration_1.createForkTsCheckerWebpackPluginConfiguration(compiler, this.options);
|
|
40
|
-
const state = ForkTsCheckerWebpackPluginState_1.createForkTsCheckerWebpackPluginState();
|
|
41
|
-
const reporters = [];
|
|
42
|
-
if (configuration.typescript.enabled) {
|
|
43
|
-
TypeScriptSupport_1.assertTypeScriptSupport(configuration.typescript);
|
|
44
|
-
reporters.push(TypeScriptReporterRpcClient_1.createTypeScriptReporterRpcClient(configuration.typescript));
|
|
45
|
-
}
|
|
46
|
-
if (reporters.length) {
|
|
47
|
-
const reporter = reporter_1.createAggregatedReporter(reporter_1.composeReporterRpcClients(reporters));
|
|
48
|
-
tapAfterEnvironmentToPatchWatching_1.tapAfterEnvironmentToPatchWatching(compiler, state);
|
|
49
|
-
tapStartToConnectAndRunReporter_1.tapStartToConnectAndRunReporter(compiler, reporter, configuration, state);
|
|
50
|
-
tapAfterCompileToAddDependencies_1.tapAfterCompileToAddDependencies(compiler, configuration, state);
|
|
51
|
-
tapStopToDisconnectReporter_1.tapStopToDisconnectReporter(compiler, reporter, state);
|
|
52
|
-
tapErrorToLogMessage_1.tapErrorToLogMessage(compiler, configuration);
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
throw new Error(`ForkTsCheckerWebpackPlugin is configured to not use any issue reporter. It's probably a configuration issue.`);
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
exports.ForkTsCheckerWebpackPlugin = ForkTsCheckerWebpackPlugin;
|
|
60
|
-
/**
|
|
61
|
-
* Current version of the plugin
|
|
62
|
-
*/
|
|
63
|
-
ForkTsCheckerWebpackPlugin.version = '7.0.0-alpha.6'; // will be replaced by the @semantic-release/exec
|
|
64
|
-
/**
|
|
65
|
-
* Default pool for the plugin concurrency limit
|
|
66
|
-
*/
|
|
67
|
-
ForkTsCheckerWebpackPlugin.pool = pool_1.createPool(Math.max(1, os_1.default.cpus().length));
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import webpack from 'webpack';
|
|
2
|
-
import { ForkTsCheckerWebpackPluginOptions } from './ForkTsCheckerWebpackPluginOptions';
|
|
3
|
-
import { IssueConfiguration } from './issue/IssueConfiguration';
|
|
4
|
-
import { FormatterConfiguration } from './formatter';
|
|
5
|
-
import { TypeScriptReporterConfiguration } from './typescript-reporter/TypeScriptReporterConfiguration';
|
|
6
|
-
import { LoggerConfiguration } from './logger/LoggerConfiguration';
|
|
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 IssueConfiguration_1 = require("./issue/IssueConfiguration");
|
|
5
|
-
const formatter_1 = require("./formatter");
|
|
6
|
-
const TypeScriptReporterConfiguration_1 = require("./typescript-reporter/TypeScriptReporterConfiguration");
|
|
7
|
-
const LoggerConfiguration_1 = require("./logger/LoggerConfiguration");
|
|
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,12 +0,0 @@
|
|
|
1
|
-
import { TypeScriptReporterOptions } from './typescript-reporter/TypeScriptReporterOptions';
|
|
2
|
-
import { IssueOptions } from './issue/IssueOptions';
|
|
3
|
-
import { FormatterOptions } from './formatter';
|
|
4
|
-
import LoggerOptions from './logger/LoggerOptions';
|
|
5
|
-
interface ForkTsCheckerWebpackPluginOptions {
|
|
6
|
-
async?: boolean;
|
|
7
|
-
typescript?: TypeScriptReporterOptions;
|
|
8
|
-
formatter?: FormatterOptions;
|
|
9
|
-
issue?: IssueOptions;
|
|
10
|
-
logger?: LoggerOptions;
|
|
11
|
-
}
|
|
12
|
-
export { ForkTsCheckerWebpackPluginOptions };
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"properties": {
|
|
5
|
-
"async": {
|
|
6
|
-
"type": "boolean",
|
|
7
|
-
"description": "When true, plugin will not block compilation to finish issues checking"
|
|
8
|
-
},
|
|
9
|
-
"typescript": {
|
|
10
|
-
"$ref": "#/definitions/TypeScriptReporterOptions"
|
|
11
|
-
},
|
|
12
|
-
"formatter": {
|
|
13
|
-
"$ref": "#/definitions/FormatterOptions"
|
|
14
|
-
},
|
|
15
|
-
"issue": {
|
|
16
|
-
"$ref": "#/definitions/IssueOptions"
|
|
17
|
-
},
|
|
18
|
-
"logger": {
|
|
19
|
-
"$ref": "#/definitions/LoggerOptions"
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
"additionalProperties": false,
|
|
23
|
-
"definitions": {
|
|
24
|
-
"Formatter": {
|
|
25
|
-
"instanceof": "Function"
|
|
26
|
-
},
|
|
27
|
-
"ComplexFormatterPreferences": {
|
|
28
|
-
"type": "object",
|
|
29
|
-
"properties": {
|
|
30
|
-
"type": {
|
|
31
|
-
"$ref": "#/definitions/FormatterType"
|
|
32
|
-
},
|
|
33
|
-
"options": {
|
|
34
|
-
"type": "object",
|
|
35
|
-
"additionalProperties": true
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
"required": ["type"]
|
|
39
|
-
},
|
|
40
|
-
"FormatterType": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"enum": ["basic", "codeframe"]
|
|
43
|
-
},
|
|
44
|
-
"IssueMatch": {
|
|
45
|
-
"type": "object",
|
|
46
|
-
"properties": {
|
|
47
|
-
"severity": {
|
|
48
|
-
"type": "string",
|
|
49
|
-
"enum": ["error", "warning"]
|
|
50
|
-
},
|
|
51
|
-
"code": {
|
|
52
|
-
"type": "string"
|
|
53
|
-
},
|
|
54
|
-
"file": {
|
|
55
|
-
"type": "string"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"IssuePredicate": {
|
|
60
|
-
"instanceof": "Function"
|
|
61
|
-
},
|
|
62
|
-
"IssuePredicateOption": {
|
|
63
|
-
"oneOf": [
|
|
64
|
-
{
|
|
65
|
-
"$ref": "#/definitions/IssuePredicate"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
"$ref": "#/definitions/IssueMatch"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"type": "array",
|
|
72
|
-
"items": {
|
|
73
|
-
"oneOf": [
|
|
74
|
-
{
|
|
75
|
-
"$ref": "#/definitions/IssuePredicate"
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"$ref": "#/definitions/IssueMatch"
|
|
79
|
-
}
|
|
80
|
-
]
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
]
|
|
84
|
-
},
|
|
85
|
-
"LoggerType": {
|
|
86
|
-
"type": "string",
|
|
87
|
-
"enum": ["console", "webpack-infrastructure", "silent"]
|
|
88
|
-
},
|
|
89
|
-
"Logger": {
|
|
90
|
-
"type": "object",
|
|
91
|
-
"properties": {
|
|
92
|
-
"error": {
|
|
93
|
-
"instanceof": "Function"
|
|
94
|
-
},
|
|
95
|
-
"info": {
|
|
96
|
-
"instanceof": "Function"
|
|
97
|
-
},
|
|
98
|
-
"log": {
|
|
99
|
-
"instanceof": "Function"
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
"TypeScriptReporterOptions": {
|
|
104
|
-
"oneOf": [
|
|
105
|
-
{
|
|
106
|
-
"type": "boolean",
|
|
107
|
-
"description": "Enable TypeScript reporter."
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"type": "object",
|
|
111
|
-
"properties": {
|
|
112
|
-
"enabled": {
|
|
113
|
-
"type": "boolean",
|
|
114
|
-
"description": "Enable TypeScript reporter."
|
|
115
|
-
},
|
|
116
|
-
"memoryLimit": {
|
|
117
|
-
"type": "number",
|
|
118
|
-
"description": "Memory limit for TypeScript reporter process."
|
|
119
|
-
},
|
|
120
|
-
"configFile": {
|
|
121
|
-
"type": "string",
|
|
122
|
-
"description": "Path to tsconfig.json. By default plugin uses context or process.cwd() to localize tsconfig.json file."
|
|
123
|
-
},
|
|
124
|
-
"context": {
|
|
125
|
-
"type": "string",
|
|
126
|
-
"description": "The base path for finding files specified in the tsconfig.json. Same as context option from the ts-loader."
|
|
127
|
-
},
|
|
128
|
-
"build": {
|
|
129
|
-
"type": "boolean",
|
|
130
|
-
"description": "The equivalent of the `--build` flag from the `tsc`."
|
|
131
|
-
},
|
|
132
|
-
"mode": {
|
|
133
|
-
"type": "string",
|
|
134
|
-
"enum": ["readonly", "write-tsbuildinfo", "write-references"],
|
|
135
|
-
"description": "`readonly` keeps all emitted files in memory, `write-tsbuildinfo` which writes only .tsbuildinfo files and `write-references` which writes both .tsbuildinfo and referenced projects output"
|
|
136
|
-
},
|
|
137
|
-
"compilerOptions": {
|
|
138
|
-
"type": "object",
|
|
139
|
-
"description": "Custom compilerOptions to be passed to the TypeScript compiler.",
|
|
140
|
-
"additionalProperties": true
|
|
141
|
-
},
|
|
142
|
-
"diagnosticOptions": {
|
|
143
|
-
"type": "object",
|
|
144
|
-
"description": "Types of diagnostics to be reported.",
|
|
145
|
-
"properties": {
|
|
146
|
-
"syntactic": {
|
|
147
|
-
"type": "boolean"
|
|
148
|
-
},
|
|
149
|
-
"semantic": {
|
|
150
|
-
"type": "boolean"
|
|
151
|
-
},
|
|
152
|
-
"declaration": {
|
|
153
|
-
"type": "boolean"
|
|
154
|
-
},
|
|
155
|
-
"global": {
|
|
156
|
-
"type": "boolean"
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
"extensions": {
|
|
161
|
-
"type": "object",
|
|
162
|
-
"properties": {
|
|
163
|
-
"vue": {
|
|
164
|
-
"$ref": "#/definitions/TypeScriptVueExtensionOptions"
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
"profile": {
|
|
169
|
-
"type": "boolean",
|
|
170
|
-
"description": "Measures and prints timings related to the TypeScript performance."
|
|
171
|
-
},
|
|
172
|
-
"typescriptPath": {
|
|
173
|
-
"type": "string",
|
|
174
|
-
"description": "If supplied this is a custom path where TypeScript can be found."
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
]
|
|
179
|
-
},
|
|
180
|
-
"TypeScriptVueExtensionOptions": {
|
|
181
|
-
"oneOf": [
|
|
182
|
-
{
|
|
183
|
-
"type": "boolean",
|
|
184
|
-
"description": "Enable TypeScript Vue extension."
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
"type": "object",
|
|
188
|
-
"properties": {
|
|
189
|
-
"enabled": {
|
|
190
|
-
"type": "boolean",
|
|
191
|
-
"description": "Enable TypeScript Vue extension."
|
|
192
|
-
},
|
|
193
|
-
"compiler": {
|
|
194
|
-
"type": "string",
|
|
195
|
-
"description": "Custom vue-template-compiler package"
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
]
|
|
200
|
-
},
|
|
201
|
-
"FormatterOptions": {
|
|
202
|
-
"oneOf": [
|
|
203
|
-
{
|
|
204
|
-
"$ref": "#/definitions/FormatterType"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
"$ref": "#/definitions/ComplexFormatterPreferences"
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"$ref": "#/definitions/Formatter"
|
|
211
|
-
}
|
|
212
|
-
]
|
|
213
|
-
},
|
|
214
|
-
"IssueOptions": {
|
|
215
|
-
"type": "object",
|
|
216
|
-
"properties": {
|
|
217
|
-
"include": {
|
|
218
|
-
"$ref": "#/definitions/IssuePredicateOption"
|
|
219
|
-
},
|
|
220
|
-
"exclude": {
|
|
221
|
-
"$ref": "#/definitions/IssuePredicateOption"
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
},
|
|
225
|
-
"LoggerOptions": {
|
|
226
|
-
"type": "object",
|
|
227
|
-
"properties": {
|
|
228
|
-
"infrastructure": {
|
|
229
|
-
"oneOf": [
|
|
230
|
-
{
|
|
231
|
-
"$ref": "#/definitions/LoggerType"
|
|
232
|
-
},
|
|
233
|
-
{
|
|
234
|
-
"$ref": "#/definitions/Logger"
|
|
235
|
-
}
|
|
236
|
-
]
|
|
237
|
-
},
|
|
238
|
-
"issues": {
|
|
239
|
-
"oneOf": [
|
|
240
|
-
{
|
|
241
|
-
"$ref": "#/definitions/LoggerType"
|
|
242
|
-
},
|
|
243
|
-
{
|
|
244
|
-
"$ref": "#/definitions/Logger"
|
|
245
|
-
}
|
|
246
|
-
]
|
|
247
|
-
},
|
|
248
|
-
"devServer": {
|
|
249
|
-
"type": "boolean",
|
|
250
|
-
"description": "Enable reporting to Webpack Dev Server."
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { FullTap } from 'tapable';
|
|
2
|
-
import { FilesMatch, Report } from './reporter';
|
|
3
|
-
import { Issue } from './issue';
|
|
4
|
-
interface ForkTsCheckerWebpackPluginState {
|
|
5
|
-
reportPromise: Promise<Report | undefined>;
|
|
6
|
-
issuesPromise: Promise<Issue[] | undefined>;
|
|
7
|
-
dependenciesPromise: Promise<FilesMatch | undefined>;
|
|
8
|
-
lastDependencies: FilesMatch | undefined;
|
|
9
|
-
watching: boolean;
|
|
10
|
-
initialized: boolean;
|
|
11
|
-
webpackDevServerDoneTap: FullTap | undefined;
|
|
12
|
-
}
|
|
13
|
-
declare function createForkTsCheckerWebpackPluginState(): ForkTsCheckerWebpackPluginState;
|
|
14
|
-
export { ForkTsCheckerWebpackPluginState, createForkTsCheckerWebpackPluginState };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OperationCanceledError = void 0;
|
|
4
|
-
class OperationCanceledError extends Error {
|
|
5
|
-
constructor() {
|
|
6
|
-
super(...arguments);
|
|
7
|
-
this.canceled = true;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.OperationCanceledError = OperationCanceledError;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { FormatterOptions } from './FormatterOptions';
|
|
2
|
-
import { Formatter } from './Formatter';
|
|
3
|
-
declare type FormatterConfiguration = Formatter;
|
|
4
|
-
declare function createFormatterConfiguration(options: FormatterOptions | undefined): FormatterConfiguration;
|
|
5
|
-
export { FormatterConfiguration, createFormatterConfiguration };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import webpack from 'webpack';
|
|
2
|
-
import { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration';
|
|
3
|
-
import { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState';
|
|
4
|
-
declare function interceptDoneToGetWebpackDevServerTap(compiler: webpack.Compiler, configuration: ForkTsCheckerWebpackPluginConfiguration, state: ForkTsCheckerWebpackPluginState): void;
|
|
5
|
-
export { interceptDoneToGetWebpackDevServerTap };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.interceptDoneToGetWebpackDevServerTap = void 0;
|
|
4
|
-
function interceptDoneToGetWebpackDevServerTap(compiler, configuration, state) {
|
|
5
|
-
// inspired by https://github.com/ypresto/fork-ts-checker-async-overlay-webpack-plugin
|
|
6
|
-
compiler.hooks.done.intercept({
|
|
7
|
-
register: (tap) => {
|
|
8
|
-
if (tap.name === 'webpack-dev-server' &&
|
|
9
|
-
tap.type === 'sync' &&
|
|
10
|
-
configuration.logger.devServer) {
|
|
11
|
-
state.webpackDevServerDoneTap = tap;
|
|
12
|
-
}
|
|
13
|
-
return tap;
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
exports.interceptDoneToGetWebpackDevServerTap = interceptDoneToGetWebpackDevServerTap;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import webpack from 'webpack';
|
|
2
|
-
import { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration';
|
|
3
|
-
import { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState';
|
|
4
|
-
declare function tapAfterCompileToAddDependencies(compiler: webpack.Compiler, configuration: ForkTsCheckerWebpackPluginConfiguration, state: ForkTsCheckerWebpackPluginState): void;
|
|
5
|
-
export { tapAfterCompileToAddDependencies };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import webpack from 'webpack';
|
|
2
|
-
import { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration';
|
|
3
|
-
import { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState';
|
|
4
|
-
declare function tapAfterCompileToGetIssues(compiler: webpack.Compiler, configuration: ForkTsCheckerWebpackPluginConfiguration, state: ForkTsCheckerWebpackPluginState): void;
|
|
5
|
-
export { tapAfterCompileToGetIssues };
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import webpack from 'webpack';
|
|
2
|
-
import { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration';
|
|
3
|
-
import { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState';
|
|
4
|
-
declare function tapDoneToAsyncGetIssues(compiler: webpack.Compiler, configuration: ForkTsCheckerWebpackPluginConfiguration, state: ForkTsCheckerWebpackPluginState): void;
|
|
5
|
-
export { tapDoneToAsyncGetIssues };
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import webpack from 'webpack';
|
|
2
|
-
import { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration';
|
|
3
|
-
declare function tapErrorToLogMessage(compiler: webpack.Compiler, configuration: ForkTsCheckerWebpackPluginConfiguration): void;
|
|
4
|
-
export { tapErrorToLogMessage };
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import webpack from 'webpack';
|
|
2
|
-
import { ForkTsCheckerWebpackPluginConfiguration } from '../ForkTsCheckerWebpackPluginConfiguration';
|
|
3
|
-
import { ForkTsCheckerWebpackPluginState } from '../ForkTsCheckerWebpackPluginState';
|
|
4
|
-
import { ReporterRpcClient } from '../reporter';
|
|
5
|
-
declare function tapStartToConnectAndRunReporter(compiler: webpack.Compiler, reporter: ReporterRpcClient, configuration: ForkTsCheckerWebpackPluginConfiguration, state: ForkTsCheckerWebpackPluginState): void;
|
|
6
|
-
export { tapStartToConnectAndRunReporter };
|