fork-ts-checker-webpack-plugin 6.5.0 → 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 +27 -105
- package/lib/files-change.d.ts +17 -0
- package/lib/files-change.js +47 -0
- package/lib/{reporter/FilesMatch.d.ts → files-match.d.ts} +0 -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} +1 -0
- package/lib/formatter/{CodeFrameFormatter.d.ts → code-frame-formatter.d.ts} +1 -1
- package/lib/formatter/{CodeFrameFormatter.js → code-frame-formatter.js} +4 -3
- package/lib/formatter/formatter-config.d.ts +5 -0
- package/lib/formatter/formatter-config.js +26 -0
- package/lib/formatter/formatter-options.d.ts +12 -0
- package/lib/{eslint-reporter/EsLintReporterOptions.js → formatter/formatter-options.js} +0 -0
- package/lib/formatter/{Formatter.d.ts → formatter.d.ts} +1 -1
- package/lib/{eslint-reporter/types/eslint.js → formatter/formatter.js} +0 -0
- package/lib/formatter/index.d.ts +6 -7
- package/lib/formatter/index.js +16 -8
- package/lib/formatter/{WebpackFormatter.d.ts → webpack-formatter.d.ts} +1 -1
- package/lib/formatter/{WebpackFormatter.js → webpack-formatter.js} +6 -6
- 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} +5 -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} +10 -6
- package/lib/hooks/{tapAfterEnvironmentToPatchWatching.d.ts → tap-after-environment-to-patch-watching.d.ts} +2 -2
- package/lib/hooks/tap-after-environment-to-patch-watching.js +22 -0
- 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} +21 -21
- package/lib/hooks/tap-error-to-log-message.d.ts +4 -0
- package/lib/hooks/{tapErrorToLogMessage.js → tap-error-to-log-message.js} +10 -9
- 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 +15 -0
- package/lib/issue/index.d.ts +3 -3
- package/lib/issue/index.js +13 -6
- package/lib/issue/issue-config.d.ts +8 -0
- package/lib/issue/{IssueConfiguration.js → issue-config.js} +9 -8
- package/lib/issue/{IssueLocation.d.ts → issue-location.d.ts} +2 -2
- package/lib/issue/issue-location.js +36 -0
- package/lib/issue/issue-match.d.ts +5 -0
- package/lib/issue/{IssueMatch.js → issue-match.js} +5 -5
- package/lib/issue/{IssueOptions.d.ts → issue-options.d.ts} +2 -2
- package/lib/{formatter/Formatter.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} +1 -0
- package/lib/issue/{IssuePredicate.d.ts → issue-predicate.d.ts} +1 -1
- package/lib/issue/{IssuePredicate.js → issue-predicate.js} +1 -0
- package/lib/issue/{IssueSeverity.d.ts → issue-severity.d.ts} +0 -0
- package/lib/issue/{IssueSeverity.js → issue-severity.js} +1 -0
- package/lib/issue/{IssueWebpackError.d.ts → issue-webpack-error.d.ts} +3 -3
- package/lib/issue/{IssueWebpackError.js → issue-webpack-error.js} +8 -6
- package/lib/issue/{Issue.d.ts → issue.d.ts} +2 -3
- package/lib/issue/{Issue.js → issue.js} +6 -7
- 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} +2 -2
- package/lib/logger/logger-factory.js +21 -0
- package/lib/logger/{LoggerOptions.d.ts → logger-options.d.ts} +2 -2
- package/lib/{formatter/FormatterOptions.js → logger/logger-options.js} +0 -0
- package/lib/logger/{Logger.d.ts → logger.d.ts} +0 -0
- package/lib/{issue/IssueOptions.js → logger/logger.js} +0 -0
- package/lib/logger/{PartialLogger.d.ts → partial-logger.d.ts} +1 -1
- package/lib/logger/{PartialLogger.js → partial-logger.js} +1 -0
- package/lib/logger/{WebpackInfrastructureLogger.d.ts → webpack-infrastructure-logger.d.ts} +2 -2
- package/lib/logger/{WebpackInfrastructureLogger.js → webpack-infrastructure-logger.js} +1 -0
- package/lib/plugin-config.d.ts +15 -0
- package/lib/plugin-config.js +17 -0
- package/lib/plugin-hooks.d.ts +20 -0
- package/lib/{hooks/pluginHooks.js → plugin-hooks.js} +8 -7
- package/lib/plugin-options.d.ts +12 -0
- package/lib/{logger/Logger.js → plugin-options.js} +0 -0
- package/lib/{ForkTsCheckerWebpackPluginOptions.json → plugin-options.json} +73 -111
- 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/plugin.d.ts +28 -0
- 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 -7
- 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/{logger/LoggerOptions.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} +2 -1
- package/lib/{typescript-reporter/extension/TypeScriptExtension.d.ts → typescript/extension/type-script-extension.d.ts} +2 -2
- package/lib/{reporter/FilesMatch.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 -2
- package/lib/{typescript-reporter/extension/vue/TypeScriptVueExtensionOptions.d.ts → typescript/extension/vue/type-script-vue-extension-options.d.ts} +0 -0
- package/lib/{reporter/Report.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 -2
- 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} +5 -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} +3 -3
- package/lib/{reporter/Reporter.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/RpcHost.js → typescript/type-script-diagnostics-options.js} +0 -0
- package/lib/typescript/type-script-support.d.ts +3 -0
- package/lib/typescript/type-script-support.js +67 -0
- package/lib/typescript/type-script-worker-config.d.ts +22 -0
- package/lib/{typescript-reporter/TypeScriptReporterConfiguration.js → typescript/type-script-worker-config.js} +6 -4
- package/lib/typescript/type-script-worker-options.d.ts +18 -0
- package/lib/{rpc/RpcMessagePort.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 +76 -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/{rpc/RpcProcedure.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} +4 -6
- package/lib/typescript/worker/lib/system.js +206 -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 +2 -1
- package/lib/utils/async/pool.js +13 -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/relative-to-context.d.ts +2 -0
- package/lib/utils/path/relative-to-context.js +16 -0
- package/lib/watch/inclusive-node-watch-file-system.d.ts +15 -0
- package/lib/watch/inclusive-node-watch-file-system.js +165 -0
- package/lib/watch/watch-file-system.d.ts +16 -0
- package/lib/{typescript-reporter/TypeScriptConfigurationOverwrite.js → watch/watch-file-system.js} +0 -0
- package/package.json +50 -67
- package/CHANGELOG.md +0 -318
- package/changelog.config.js +0 -36
- package/lib/ForkTsCheckerWebpackPlugin.d.ts +0 -29
- package/lib/ForkTsCheckerWebpackPlugin.js +0 -84
- package/lib/ForkTsCheckerWebpackPluginConfiguration.d.ts +0 -17
- package/lib/ForkTsCheckerWebpackPluginConfiguration.js +0 -18
- package/lib/ForkTsCheckerWebpackPluginOptions.d.ts +0 -14
- package/lib/ForkTsCheckerWebpackPluginState.d.ts +0 -15
- package/lib/error/OperationCanceledError.d.ts +0 -4
- package/lib/error/OperationCanceledError.js +0 -9
- package/lib/eslint-reporter/EsLintReporterConfiguration.d.ts +0 -11
- package/lib/eslint-reporter/EsLintReporterConfiguration.js +0 -26
- package/lib/eslint-reporter/EsLintReporterOptions.d.ts +0 -8
- package/lib/eslint-reporter/assertEsLintSupport.d.ts +0 -3
- package/lib/eslint-reporter/assertEsLintSupport.js +0 -30
- package/lib/eslint-reporter/issue/EsLintIssueFactory.d.ts +0 -4
- package/lib/eslint-reporter/issue/EsLintIssueFactory.js +0 -32
- package/lib/eslint-reporter/reporter/EsLintReporter.d.ts +0 -4
- package/lib/eslint-reporter/reporter/EsLintReporter.js +0 -179
- package/lib/eslint-reporter/reporter/EsLintReporterRpcClient.d.ts +0 -4
- package/lib/eslint-reporter/reporter/EsLintReporterRpcClient.js +0 -13
- package/lib/eslint-reporter/reporter/EsLintReporterRpcService.d.ts +0 -1
- package/lib/eslint-reporter/reporter/EsLintReporterRpcService.js +0 -11
- package/lib/eslint-reporter/types/eslint.d.ts +0 -37
- package/lib/formatter/FormatterConfiguration.d.ts +0 -5
- package/lib/formatter/FormatterConfiguration.js +0 -7
- package/lib/formatter/FormatterFactory.d.ts +0 -13
- package/lib/formatter/FormatterFactory.js +0 -18
- package/lib/formatter/FormatterOptions.d.ts +0 -7
- package/lib/hooks/interceptDoneToGetWebpackDevServerTap.d.ts +0 -5
- package/lib/hooks/interceptDoneToGetWebpackDevServerTap.js +0 -16
- package/lib/hooks/pluginHooks.d.ts +0 -20
- package/lib/hooks/tapAfterCompileToAddDependencies.d.ts +0 -5
- package/lib/hooks/tapAfterCompileToGetIssues.d.ts +0 -5
- package/lib/hooks/tapAfterEnvironmentToPatchWatching.js +0 -13
- 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 -125
- package/lib/hooks/tapStopToDisconnectReporter.d.ts +0 -5
- package/lib/hooks/tapStopToDisconnectReporter.js +0 -29
- package/lib/issue/IssueConfiguration.d.ts +0 -8
- package/lib/issue/IssueLocation.js +0 -21
- package/lib/issue/IssueMatch.d.ts +0 -5
- package/lib/logger/LoggerConfiguration.d.ts +0 -10
- package/lib/logger/LoggerConfiguration.js +0 -11
- package/lib/logger/LoggerFactory.js +0 -20
- package/lib/profile/Performance.d.ts +0 -11
- package/lib/profile/Performance.js +0 -62
- package/lib/reporter/AggregatedReporter.d.ts +0 -6
- package/lib/reporter/AggregatedReporter.js +0 -60
- package/lib/reporter/FilesChange.d.ts +0 -16
- package/lib/reporter/FilesChange.js +0 -39
- 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 -9
- package/lib/reporter/reporter-rpc/ReporterRpcClient.d.ts +0 -10
- package/lib/reporter/reporter-rpc/ReporterRpcClient.js +0 -82
- package/lib/reporter/reporter-rpc/ReporterRpcProcedure.d.ts +0 -10
- package/lib/reporter/reporter-rpc/ReporterRpcProcedure.js +0 -12
- package/lib/reporter/reporter-rpc/ReporterRpcService.d.ts +0 -9
- package/lib/reporter/reporter-rpc/ReporterRpcService.js +0 -74
- package/lib/rpc/RpcClient.d.ts +0 -10
- package/lib/rpc/RpcClient.js +0 -78
- package/lib/rpc/RpcHost.d.ts +0 -6
- package/lib/rpc/RpcMessage.d.ts +0 -26
- package/lib/rpc/RpcMessage.js +0 -45
- package/lib/rpc/RpcMessageChannel.d.ts +0 -10
- package/lib/rpc/RpcMessageChannel.js +0 -49
- 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 -63
- package/lib/rpc/error/RpcMessagePortClosedError.d.ts +0 -3
- package/lib/rpc/error/RpcMessagePortClosedError.js +0 -5
- package/lib/rpc/error/RpcRemoteError.d.ts +0 -6
- package/lib/rpc/error/RpcRemoteError.js +0 -17
- 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 -10
- package/lib/rpc/rpc-ipc/RpcIpcMessagePort.d.ts +0 -5
- package/lib/rpc/rpc-ipc/RpcIpcMessagePort.js +0 -150
- package/lib/rpc/rpc-ipc/error/RpcIpcMessagePortClosedError.js +0 -12
- package/lib/rpc/rpc-ipc/index.d.ts +0 -2
- package/lib/rpc/rpc-ipc/index.js +0 -7
- package/lib/typescript-reporter/TypeScriptDiagnosticsOptions.js +0 -2
- 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/TypeScriptSupport.js +0 -52
- 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 -81
- package/lib/typescript-reporter/file-system/PassiveFileSystem.d.ts +0 -9
- package/lib/typescript-reporter/file-system/PassiveFileSystem.js +0 -68
- package/lib/typescript-reporter/file-system/RealFileSystem.d.ts +0 -8
- package/lib/typescript-reporter/file-system/RealFileSystem.js +0 -179
- package/lib/typescript-reporter/issue/TypeScriptIssueFactory.d.ts +0 -4
- package/lib/typescript-reporter/issue/TypeScriptIssueFactory.js +0 -45
- package/lib/typescript-reporter/profile/TypeScriptPerformance.d.ts +0 -10
- package/lib/typescript-reporter/profile/TypeScriptPerformance.js +0 -33
- package/lib/typescript-reporter/reporter/ControlledTypeScriptSystem.js +0 -231
- package/lib/typescript-reporter/reporter/ControlledWatchCompilerHost.d.ts +0 -5
- package/lib/typescript-reporter/reporter/ControlledWatchCompilerHost.js +0 -28
- package/lib/typescript-reporter/reporter/ControlledWatchSolutionBuilderHost.d.ts +0 -5
- package/lib/typescript-reporter/reporter/ControlledWatchSolutionBuilderHost.js +0 -50
- package/lib/typescript-reporter/reporter/TypeScriptConfigurationParser.d.ts +0 -8
- package/lib/typescript-reporter/reporter/TypeScriptConfigurationParser.js +0 -136
- package/lib/typescript-reporter/reporter/TypeScriptReporter.d.ts +0 -4
- package/lib/typescript-reporter/reporter/TypeScriptReporter.js +0 -352
- package/lib/typescript-reporter/reporter/TypeScriptReporterRpcClient.d.ts +0 -4
- package/lib/typescript-reporter/reporter/TypeScriptReporterRpcClient.js +0 -13
- 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/CompilerWithWatchFileSystem.d.ts +0 -6
- package/lib/watch/CompilerWithWatchFileSystem.js +0 -2
- package/lib/watch/InclusiveNodeWatchFileSystem.d.ts +0 -15
- package/lib/watch/InclusiveNodeWatchFileSystem.js +0 -135
- package/lib/watch/WatchFileSystem.d.ts +0 -33
- package/lib/watch/WatchFileSystem.js +0 -2
|
@@ -0,0 +1,165 @@
|
|
|
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.InclusiveNodeWatchFileSystem = void 0;
|
|
7
|
+
const path_1 = require("path");
|
|
8
|
+
const chokidar_1 = __importDefault(require("chokidar"));
|
|
9
|
+
const minimatch_1 = __importDefault(require("minimatch"));
|
|
10
|
+
const files_change_1 = require("../files-change");
|
|
11
|
+
const infrastructure_logger_1 = require("../infrastructure-logger");
|
|
12
|
+
const BUILTIN_IGNORED_DIRS = ['node_modules', '.git', '.yarn', '.pnp'];
|
|
13
|
+
function createIsIgnored(ignored, excluded) {
|
|
14
|
+
const ignoredPatterns = ignored ? (Array.isArray(ignored) ? ignored : [ignored]) : [];
|
|
15
|
+
const ignoredFunctions = ignoredPatterns.map((pattern) => {
|
|
16
|
+
// ensure patterns are valid - see https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/594
|
|
17
|
+
if (typeof pattern === 'string') {
|
|
18
|
+
return (path) => minimatch_1.default(path, pattern);
|
|
19
|
+
}
|
|
20
|
+
else if (pattern instanceof RegExp) {
|
|
21
|
+
return (path) => pattern.test(path);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
// fallback to no-ignore function
|
|
25
|
+
return () => false;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
ignoredFunctions.push((path) => excluded.some((excludedPath) => path.startsWith(excludedPath)));
|
|
29
|
+
ignoredFunctions.push((path) => BUILTIN_IGNORED_DIRS.some((ignoredDir) => path.includes(`/${ignoredDir}/`)));
|
|
30
|
+
return function isIgnored(path) {
|
|
31
|
+
return ignoredFunctions.some((ignoredFunction) => ignoredFunction(path));
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
class InclusiveNodeWatchFileSystem {
|
|
35
|
+
constructor(watchFileSystem, compiler, pluginState) {
|
|
36
|
+
this.watchFileSystem = watchFileSystem;
|
|
37
|
+
this.compiler = compiler;
|
|
38
|
+
this.pluginState = pluginState;
|
|
39
|
+
this.paused = true;
|
|
40
|
+
this.watch = (files, dirs, missing, startTime, options, callback, callbackUndelayed) => {
|
|
41
|
+
var _a, _b, _c, _d;
|
|
42
|
+
const { debug } = infrastructure_logger_1.getInfrastructureLogger(this.compiler);
|
|
43
|
+
files_change_1.clearFilesChange(this.compiler);
|
|
44
|
+
const isIgnored = createIsIgnored(options === null || options === void 0 ? void 0 : options.ignored, ((_a = this.pluginState.lastDependencies) === null || _a === void 0 ? void 0 : _a.excluded) || []);
|
|
45
|
+
// use standard watch file system for files and missing
|
|
46
|
+
const standardWatcher = this.watchFileSystem.watch(files, dirs, missing, startTime, options, callback, callbackUndelayed);
|
|
47
|
+
(_b = this.watcher) === null || _b === void 0 ? void 0 : _b.on('change', (file) => {
|
|
48
|
+
if (typeof file !== 'string') {
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
if (!isIgnored(file)) {
|
|
52
|
+
debug('Detected file change', file);
|
|
53
|
+
this.deletedFiles.delete(file);
|
|
54
|
+
files_change_1.updateFilesChange(this.compiler, { changedFiles: [file] });
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
debug("Detected file change but it's ignored", file);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
(_c = this.watcher) === null || _c === void 0 ? void 0 : _c.on('remove', (file) => {
|
|
61
|
+
if (typeof file !== 'string') {
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (this.deletedFiles.has(file)) {
|
|
65
|
+
debug('Skipping duplicated remove event.');
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (!isIgnored(file)) {
|
|
69
|
+
debug('Detected file remove', file);
|
|
70
|
+
this.deletedFiles.add(file);
|
|
71
|
+
files_change_1.updateFilesChange(this.compiler, { deletedFiles: [file] });
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
debug("Detected file remove but it's ignored", file);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
// calculate what to change
|
|
78
|
+
const prevDirs = Array.from(this.dirsWatchers.keys());
|
|
79
|
+
const nextDirs = Array.from(((_d = this.pluginState.lastDependencies) === null || _d === void 0 ? void 0 : _d.dirs) || []);
|
|
80
|
+
const dirsToUnwatch = prevDirs.filter((prevDir) => !nextDirs.includes(prevDir));
|
|
81
|
+
const dirsToWatch = nextDirs.filter((nextDir) => !prevDirs.includes(nextDir) && !isIgnored(nextDir));
|
|
82
|
+
// update dirs watcher
|
|
83
|
+
dirsToUnwatch.forEach((dirToUnwatch) => {
|
|
84
|
+
var _a;
|
|
85
|
+
(_a = this.dirsWatchers.get(dirToUnwatch)) === null || _a === void 0 ? void 0 : _a.close();
|
|
86
|
+
this.dirsWatchers.delete(dirToUnwatch);
|
|
87
|
+
});
|
|
88
|
+
dirsToWatch.forEach((dirToWatch) => {
|
|
89
|
+
const interval = typeof (options === null || options === void 0 ? void 0 : options.poll) === 'number' ? options.poll : undefined;
|
|
90
|
+
const dirWatcher = chokidar_1.default.watch(dirToWatch, {
|
|
91
|
+
ignoreInitial: true,
|
|
92
|
+
ignorePermissionErrors: true,
|
|
93
|
+
ignored: (path) => isIgnored(path),
|
|
94
|
+
usePolling: (options === null || options === void 0 ? void 0 : options.poll) ? true : undefined,
|
|
95
|
+
interval: interval,
|
|
96
|
+
binaryInterval: interval,
|
|
97
|
+
alwaysStat: true,
|
|
98
|
+
atomic: true,
|
|
99
|
+
awaitWriteFinish: true,
|
|
100
|
+
});
|
|
101
|
+
dirWatcher.on('add', (file, stats) => {
|
|
102
|
+
var _a, _b;
|
|
103
|
+
if (this.paused) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
const extension = path_1.extname(file);
|
|
107
|
+
const supportedExtensions = ((_a = this.pluginState.lastDependencies) === null || _a === void 0 ? void 0 : _a.extensions) || [];
|
|
108
|
+
if (!supportedExtensions.includes(extension)) {
|
|
109
|
+
debug('Detected new file add but extension is not supported', file);
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
debug('Detected new file add', file);
|
|
113
|
+
this.deletedFiles.delete(file);
|
|
114
|
+
files_change_1.updateFilesChange(this.compiler, { changedFiles: [file] });
|
|
115
|
+
(_b = this.watcher) === null || _b === void 0 ? void 0 : _b._onChange(dirToWatch, (stats === null || stats === void 0 ? void 0 : stats.mtimeMs) || (stats === null || stats === void 0 ? void 0 : stats.ctimeMs) || 1, file, 'rename');
|
|
116
|
+
});
|
|
117
|
+
dirWatcher.on('unlink', (file) => {
|
|
118
|
+
var _a, _b;
|
|
119
|
+
if (this.paused) {
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
122
|
+
const extension = path_1.extname(file);
|
|
123
|
+
const supportedExtensions = ((_a = this.pluginState.lastDependencies) === null || _a === void 0 ? void 0 : _a.extensions) || [];
|
|
124
|
+
if (!supportedExtensions.includes(extension)) {
|
|
125
|
+
debug('Detected new file remove but extension is not supported', file);
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
if (this.deletedFiles.has(file)) {
|
|
129
|
+
debug('Skipping duplicated unlink event.');
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
debug('Detected new file remove', file);
|
|
133
|
+
this.deletedFiles.add(file);
|
|
134
|
+
files_change_1.updateFilesChange(this.compiler, { deletedFiles: [file] });
|
|
135
|
+
(_b = this.watcher) === null || _b === void 0 ? void 0 : _b._onRemove(dirToWatch, file, 'rename');
|
|
136
|
+
});
|
|
137
|
+
this.dirsWatchers.set(dirToWatch, dirWatcher);
|
|
138
|
+
});
|
|
139
|
+
this.paused = false;
|
|
140
|
+
return Object.assign(Object.assign({}, standardWatcher), { close: () => {
|
|
141
|
+
files_change_1.clearFilesChange(this.compiler);
|
|
142
|
+
if (standardWatcher) {
|
|
143
|
+
standardWatcher.close();
|
|
144
|
+
}
|
|
145
|
+
this.dirsWatchers.forEach((dirWatcher) => {
|
|
146
|
+
dirWatcher === null || dirWatcher === void 0 ? void 0 : dirWatcher.close();
|
|
147
|
+
});
|
|
148
|
+
this.dirsWatchers.clear();
|
|
149
|
+
this.paused = true;
|
|
150
|
+
}, pause: () => {
|
|
151
|
+
if (standardWatcher) {
|
|
152
|
+
standardWatcher.pause();
|
|
153
|
+
}
|
|
154
|
+
this.paused = true;
|
|
155
|
+
} });
|
|
156
|
+
};
|
|
157
|
+
this.dirsWatchers = new Map();
|
|
158
|
+
this.deletedFiles = new Set();
|
|
159
|
+
}
|
|
160
|
+
get watcher() {
|
|
161
|
+
var _a;
|
|
162
|
+
return this.watchFileSystem.watcher || ((_a = this.watchFileSystem.wfs) === null || _a === void 0 ? void 0 : _a.watcher);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
exports.InclusiveNodeWatchFileSystem = InclusiveNodeWatchFileSystem;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type { EventEmitter } from 'events';
|
|
3
|
+
import type webpack from 'webpack';
|
|
4
|
+
interface Watchpack extends EventEmitter {
|
|
5
|
+
_onChange(item: string, mtime: number, file: string, type?: string): void;
|
|
6
|
+
_onRemove(item: string, file: string, type?: string): void;
|
|
7
|
+
}
|
|
8
|
+
declare type Watch = webpack.Compiler['watchFileSystem']['watch'];
|
|
9
|
+
interface WatchFileSystem {
|
|
10
|
+
watcher?: Watchpack;
|
|
11
|
+
wfs?: {
|
|
12
|
+
watcher: Watchpack;
|
|
13
|
+
};
|
|
14
|
+
watch: Watch;
|
|
15
|
+
}
|
|
16
|
+
export { WatchFileSystem, Watchpack };
|
package/lib/{typescript-reporter/TypeScriptConfigurationOverwrite.js → watch/watch-file-system.js}
RENAMED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fork-ts-checker-webpack-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-alpha.12",
|
|
4
4
|
"description": "Runs typescript type checker and linter on separate process.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fast",
|
|
@@ -38,13 +38,8 @@
|
|
|
38
38
|
"test:e2e": "npm pack && cross-env jest --config=test/e2e/jest.config.js --ci -i -b",
|
|
39
39
|
"precommit": "cross-env lint-staged && yarn build && yarn test:unit",
|
|
40
40
|
"commit": "cross-env git-cz",
|
|
41
|
-
"semantic-release": "semantic-release"
|
|
42
|
-
|
|
43
|
-
"husky": {
|
|
44
|
-
"hooks": {
|
|
45
|
-
"pre-commit": "lint-staged && yarn build && yarn test:unit",
|
|
46
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
47
|
-
}
|
|
41
|
+
"semantic-release": "semantic-release",
|
|
42
|
+
"prepare": "husky install"
|
|
48
43
|
},
|
|
49
44
|
"commitlint": {
|
|
50
45
|
"extends": [
|
|
@@ -60,79 +55,67 @@
|
|
|
60
55
|
}
|
|
61
56
|
},
|
|
62
57
|
"dependencies": {
|
|
63
|
-
"@babel/code-frame": "^7.
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"cosmiconfig": "^6.0.0",
|
|
58
|
+
"@babel/code-frame": "^7.14.5",
|
|
59
|
+
"chalk": "^4.1.2",
|
|
60
|
+
"chokidar": "^3.5.2",
|
|
61
|
+
"cosmiconfig": "^7.0.0",
|
|
68
62
|
"deepmerge": "^4.2.2",
|
|
69
|
-
"fs-extra": "^
|
|
70
|
-
"glob": "^7.1.
|
|
71
|
-
"memfs": "^3.
|
|
63
|
+
"fs-extra": "^10.0.0",
|
|
64
|
+
"glob": "^7.1.7",
|
|
65
|
+
"memfs": "^3.2.2",
|
|
72
66
|
"minimatch": "^3.0.4",
|
|
73
|
-
"schema-utils": "
|
|
74
|
-
"semver": "^7.3.
|
|
75
|
-
"tapable": "^
|
|
67
|
+
"schema-utils": "3.1.1",
|
|
68
|
+
"semver": "^7.3.5",
|
|
69
|
+
"tapable": "^2.0.0"
|
|
76
70
|
},
|
|
77
71
|
"peerDependencies": {
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"webpack": ">= 4",
|
|
81
|
-
"vue-template-compiler": "*"
|
|
82
|
-
},
|
|
83
|
-
"peerDependenciesMeta": {
|
|
84
|
-
"eslint": {
|
|
85
|
-
"optional": true
|
|
86
|
-
},
|
|
87
|
-
"vue-template-compiler": {
|
|
88
|
-
"optional": true
|
|
89
|
-
}
|
|
72
|
+
"typescript": ">3.6.0",
|
|
73
|
+
"webpack": "^5.11.0"
|
|
90
74
|
},
|
|
91
75
|
"devDependencies": {
|
|
92
|
-
"@commitlint/config-conventional": "^
|
|
76
|
+
"@commitlint/config-conventional": "^13.1.0",
|
|
93
77
|
"@semantic-release/commit-analyzer": "^8.0.1",
|
|
94
78
|
"@semantic-release/exec": "^5.0.0",
|
|
95
|
-
"@semantic-release/github": "^7.
|
|
96
|
-
"@semantic-release/npm": "^7.
|
|
97
|
-
"@semantic-release/release-notes-generator": "^9.0.
|
|
98
|
-
"@types/babel__code-frame": "^7.0.
|
|
79
|
+
"@semantic-release/github": "^7.2.3",
|
|
80
|
+
"@semantic-release/npm": "^7.1.3",
|
|
81
|
+
"@semantic-release/release-notes-generator": "^9.0.3",
|
|
82
|
+
"@types/babel__code-frame": "^7.0.3",
|
|
99
83
|
"@types/cross-spawn": "^6.0.2",
|
|
100
|
-
"@types/
|
|
101
|
-
"@types/
|
|
102
|
-
"@types/
|
|
103
|
-
"@types/minimatch": "^3.0.
|
|
104
|
-
"@types/mock-fs": "^4.13.
|
|
105
|
-
"@types/node": "^
|
|
106
|
-
"@types/rimraf": "^3.0.
|
|
107
|
-
"@types/semver": "^7.3.
|
|
108
|
-
"@
|
|
109
|
-
"@typescript-eslint/
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"eslint": "^6.8.0",
|
|
115
|
-
"eslint-config-prettier": "^6.13.0",
|
|
84
|
+
"@types/fs-extra": "^9.0.12",
|
|
85
|
+
"@types/jest": "^26.0.24",
|
|
86
|
+
"@types/json-schema": "^7.0.9",
|
|
87
|
+
"@types/minimatch": "^3.0.5",
|
|
88
|
+
"@types/mock-fs": "^4.13.1",
|
|
89
|
+
"@types/node": "^16.4.13",
|
|
90
|
+
"@types/rimraf": "^3.0.1",
|
|
91
|
+
"@types/semver": "^7.3.8",
|
|
92
|
+
"@typescript-eslint/eslint-plugin": "^5.1.0",
|
|
93
|
+
"@typescript-eslint/parser": "^5.1.0",
|
|
94
|
+
"commitlint": "^13.1.0",
|
|
95
|
+
"cross-env": "^7.0.3",
|
|
96
|
+
"eslint": "^7.32.0",
|
|
97
|
+
"eslint-plugin-import": "^2.25.2",
|
|
116
98
|
"eslint-plugin-node": "^11.1.0",
|
|
117
|
-
"eslint-plugin-prettier": "^
|
|
118
|
-
"git-cz": "^4.7.
|
|
119
|
-
"husky": "^
|
|
120
|
-
"jest": "^
|
|
121
|
-
"jest-circus": "^
|
|
122
|
-
"jest-environment-node": "^
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
99
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
100
|
+
"git-cz": "^4.7.6",
|
|
101
|
+
"husky": "^7.0.0",
|
|
102
|
+
"jest": "^27.0.6",
|
|
103
|
+
"jest-circus": "^27.0.6",
|
|
104
|
+
"jest-environment-node": "^27.0.6",
|
|
105
|
+
"json-schema": "^0.3.0",
|
|
106
|
+
"karton": "^0.4.1",
|
|
107
|
+
"lint-staged": "^11.1.2",
|
|
108
|
+
"mock-fs": "^5.0.0",
|
|
109
|
+
"prettier": "^2.3.2",
|
|
126
110
|
"rimraf": "^3.0.2",
|
|
127
|
-
"semantic-release": "^17.
|
|
111
|
+
"semantic-release": "^17.4.4",
|
|
128
112
|
"strip-ansi": "^6.0.0",
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"webpack": "^4.42.1"
|
|
113
|
+
"ts-jest": "^27.0.4",
|
|
114
|
+
"typescript": "^4.3.5",
|
|
115
|
+
"webpack": "^5.49.0"
|
|
133
116
|
},
|
|
134
117
|
"engines": {
|
|
135
|
-
"node": ">=
|
|
118
|
+
"node": ">=12.13.0",
|
|
136
119
|
"yarn": ">=1.0.0"
|
|
137
120
|
}
|
|
138
121
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
## ⚠️ Next versions are available only on the [GitHub Releases](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/releases) page ⚠️
|
|
2
|
-
|
|
3
|
-
# [1.3.0-beta.1](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/compare/v1.2.0...v1.3.0-beta.1@beta) (2019-04-30)
|
|
4
|
-
|
|
5
|
-
### Bug Fixes
|
|
6
|
-
|
|
7
|
-
- **tests:** fix linter tests that were doing nothing ([d078278](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/d078278))
|
|
8
|
-
- **tests:** linter tests - useTypescriptIncrementalApi usage ([e0020d6](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/e0020d6))
|
|
9
|
-
- **tests:** rework vue integration tests ([5ad2568](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/5ad2568))
|
|
10
|
-
|
|
11
|
-
### Features
|
|
12
|
-
|
|
13
|
-
- **apiincrementalchecker:** improve generation of diagnostics ([ae80e5f](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/ae80e5f)), closes [#257](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/257)
|
|
14
|
-
|
|
15
|
-
# [1.2.0](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/compare/v1.1.1...v1.2.0) (2019-04-22)
|
|
16
|
-
|
|
17
|
-
### Bug Fixes
|
|
18
|
-
|
|
19
|
-
- semantic-release update `CHANGELOG.md` on the git repo ([8ad58af](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/8ad58af))
|
|
20
|
-
|
|
21
|
-
### Features
|
|
22
|
-
|
|
23
|
-
- add semantic-release integration ([5fe0653](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/5fe0653))
|
|
24
|
-
|
|
25
|
-
# [1.2.0-beta.4](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/compare/v1.2.0-beta.3@beta...v1.2.0-beta.4@beta) (2019-04-23)
|
|
26
|
-
|
|
27
|
-
### Bug Fixes
|
|
28
|
-
|
|
29
|
-
- **tests:** fix linter tests that were doing nothing ([d078278](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/d078278))
|
|
30
|
-
- **tests:** linter tests - useTypescriptIncrementalApi usage ([e0020d6](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/e0020d6))
|
|
31
|
-
|
|
32
|
-
### Features
|
|
33
|
-
|
|
34
|
-
- **apiincrementalchecker:** improve generation of diagnostics ([ae80e5f](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/ae80e5f)), closes [#257](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/257)
|
|
35
|
-
|
|
36
|
-
# [1.2.0-beta.3](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/compare/v1.2.0-beta.2@beta...v1.2.0-beta.3@beta) (2019-04-22)
|
|
37
|
-
|
|
38
|
-
### Bug Fixes
|
|
39
|
-
|
|
40
|
-
- **tests:** rework vue integration tests ([5ad2568](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/5ad2568))
|
|
41
|
-
|
|
42
|
-
# [1.2.0-beta.2](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/compare/v1.2.0-beta.1@beta...v1.2.0-beta.2@beta) (2019-04-22)
|
|
43
|
-
|
|
44
|
-
### Bug Fixes
|
|
45
|
-
|
|
46
|
-
- semantic-release update `CHANGELOG.md` on the git repo ([8ad58af](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/8ad58af))
|
|
47
|
-
|
|
48
|
-
# [1.2.0-beta.1](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/compare/v1.1.0...v1.2.0-beta.1@beta) (2019-04-22)
|
|
49
|
-
|
|
50
|
-
### Features
|
|
51
|
-
|
|
52
|
-
- add semantic-release integration ([5fe0653](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/commit/5fe0653))
|
|
53
|
-
|
|
54
|
-
## v1.1.1
|
|
55
|
-
|
|
56
|
-
- [Fix a regression w/ plugins like tsconfig-paths-webpack-plugin](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/260)
|
|
57
|
-
|
|
58
|
-
## v1.1.0
|
|
59
|
-
|
|
60
|
-
- [Add new custom resolution options](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/250)
|
|
61
|
-
|
|
62
|
-
## v1.0.4
|
|
63
|
-
|
|
64
|
-
- [gracefully handle error thrown from the service](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/249)
|
|
65
|
-
|
|
66
|
-
## v1.0.3
|
|
67
|
-
|
|
68
|
-
- [use worker-rpc library for inter-process communication](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/231)
|
|
69
|
-
|
|
70
|
-
## v1.0.2
|
|
71
|
-
|
|
72
|
-
- [Fix ignoreLintWarning mark warnings as errors](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/243)
|
|
73
|
-
|
|
74
|
-
## v1.0.1
|
|
75
|
-
|
|
76
|
-
- [Apply rounding to compilation time](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/235)
|
|
77
|
-
|
|
78
|
-
## v1.0.0
|
|
79
|
-
|
|
80
|
-
- [Going 1.0](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/218)
|
|
81
|
-
|
|
82
|
-
This is the first major version of `fork-ts-checker-webpack-plugin`. A long time coming :-)
|
|
83
|
-
|
|
84
|
-
There are actually no breaking changes that we're aware of; users of 0.x `fork-ts-checker-webpack-plugin` should be be able to upgrade without any drama. Users of TypeScript 3+ may notice a performance improvement as by default the plugin now uses the [incremental watch API](https://github.com/Microsoft/TypeScript/pull/20234) in TypeScript. Should this prove problematic you can opt out of using it by supplying `useTypescriptIncrementalApi: false`.
|
|
85
|
-
|
|
86
|
-
We are aware of an [issue with Vue and the incremental API](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/219). We hope it will be fixed soon - a generous member of the community is taking a look. In the meantime, we will _not_ default to using the incremental watch API when in Vue mode.
|
|
87
|
-
|
|
88
|
-
The plugin supports webpack 2, 3, 4 and 5 alpha and TypeScript 2.1+ alongside tslint 4+.
|
|
89
|
-
|
|
90
|
-
See also: https://blog.johnnyreilly.com/2019/03/the-big-one-point-oh.html
|
|
91
|
-
|
|
92
|
-
## v1.0.0-alpha.10
|
|
93
|
-
|
|
94
|
-
- [Fix incremental api to work with TS 3+ by default](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/223)
|
|
95
|
-
|
|
96
|
-
## v1.0.0-alpha.9
|
|
97
|
-
|
|
98
|
-
- [Default to incremental api usage to true if TS 3+](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/217)
|
|
99
|
-
|
|
100
|
-
## v1.0.0-alpha.8
|
|
101
|
-
|
|
102
|
-
- [Respect tslint configs hierarchical order](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/214)
|
|
103
|
-
|
|
104
|
-
## v1.0.0-alpha.7
|
|
105
|
-
|
|
106
|
-
- [Add ignoreLintWarnings option](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/213)
|
|
107
|
-
|
|
108
|
-
## v1.0.0-alpha.6
|
|
109
|
-
|
|
110
|
-
- [don't directly depend upon typescript](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/208)
|
|
111
|
-
|
|
112
|
-
## v1.0.0-alpha.5
|
|
113
|
-
|
|
114
|
-
- [can now provide path where typescript can be found](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/204)
|
|
115
|
-
|
|
116
|
-
## v1.0.0-alpha.4
|
|
117
|
-
|
|
118
|
-
- [make node 6 compatible](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/202)
|
|
119
|
-
|
|
120
|
-
## v1.0.0-alpha.3
|
|
121
|
-
|
|
122
|
-
- [replace peerDeps with runtime checks](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/201)
|
|
123
|
-
|
|
124
|
-
## v1.0.0-alpha.2
|
|
125
|
-
|
|
126
|
-
- [Add `useTypescriptIncrementalApi`](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/198) (#196)
|
|
127
|
-
|
|
128
|
-
## v1.0.0-alpha.1
|
|
129
|
-
|
|
130
|
-
- [Use object-spread instead of `Object.assign`](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/194) (#194)
|
|
131
|
-
|
|
132
|
-
## v1.0.0-alpha.0
|
|
133
|
-
|
|
134
|
-
- [Add support for webpack 5](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/166)
|
|
135
|
-
|
|
136
|
-
### Breaking Changes
|
|
137
|
-
|
|
138
|
-
Version `1.x` additionally supports webpack 5 alongside webpack 4, whose hooks are now tapped differently:
|
|
139
|
-
|
|
140
|
-
```diff
|
|
141
|
-
- compiler.hooks.forkTsCheckerDone.tap(...args)
|
|
142
|
-
+ const forkTsCheckerHooks = ForkTsCheckerWebpackPlugin.getCompilerHooks(compiler)
|
|
143
|
-
+ forkTsCheckerHooks.done.tap(...args)
|
|
144
|
-
```
|
|
145
|
-
|
|
146
|
-
v1.0.0-alpha.0 drops support for node 6.
|
|
147
|
-
|
|
148
|
-
## v0.5.2
|
|
149
|
-
|
|
150
|
-
- [Fix erroneous error on diagnostics at 0 line; remove deprecated fs.existsSync](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/190) (#190)
|
|
151
|
-
|
|
152
|
-
## v0.5.1
|
|
153
|
-
|
|
154
|
-
- [Make the checker compile with TypeScript 3.2](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/189)
|
|
155
|
-
|
|
156
|
-
## 0.5.0
|
|
157
|
-
|
|
158
|
-
- Removed unused dependency `resolve`.
|
|
159
|
-
- Replace `lodash` usage with native calls.
|
|
160
|
-
- ** Breaking Changes**:
|
|
161
|
-
- Removed all getters from `NormalizedMessage`, use direct property access instead.
|
|
162
|
-
- **Internal**:
|
|
163
|
-
- Test against ts-loader v5
|
|
164
|
-
- Enable all strict type checks
|
|
165
|
-
- Update dev dependencies
|
|
166
|
-
|
|
167
|
-
## v0.4.15
|
|
168
|
-
|
|
169
|
-
- [Add `tslintAutoFix` option to be passed on to tslint to auto format typescript files](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/174) (#174)
|
|
170
|
-
|
|
171
|
-
## v0.4.14
|
|
172
|
-
|
|
173
|
-
- [Add support for `reportFiles` option](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/179) (#179)
|
|
174
|
-
|
|
175
|
-
## v0.4.13
|
|
176
|
-
|
|
177
|
-
- [Merge in `compilerOptions` prior to calling `parseJsonConfigFileContent`](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/176) (#176)
|
|
178
|
-
|
|
179
|
-
## v0.4.12
|
|
180
|
-
|
|
181
|
-
- [Add `compilerOptions` option](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/173) (#173)
|
|
182
|
-
|
|
183
|
-
## v0.4.11
|
|
184
|
-
|
|
185
|
-
- [Fix os.cpus is not a function](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/172) (#172)
|
|
186
|
-
|
|
187
|
-
## v0.4.10
|
|
188
|
-
|
|
189
|
-
- [Allow fork-ts-checker-webpack-plugin to be imported in .ts files using ESM import syntax](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/163) (#163)
|
|
190
|
-
|
|
191
|
-
## v0.4.9
|
|
192
|
-
|
|
193
|
-
- [Set "compilationDone" before resolving "forkTsCheckerServiceBeforeStart"](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/146) (#146)
|
|
194
|
-
|
|
195
|
-
## v0.4.8
|
|
196
|
-
|
|
197
|
-
- [Fix(types collision): update webpack](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/151) (#142)
|
|
198
|
-
|
|
199
|
-
## v0.4.7
|
|
200
|
-
|
|
201
|
-
- [Fix(types collision): update chalk and chokidar](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/147) (#142)
|
|
202
|
-
- [Fix(logger): Don't limit Options.logger to Console type](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/143)
|
|
203
|
-
|
|
204
|
-
## v0.4.6
|
|
205
|
-
|
|
206
|
-
- [Fix(types): Make options Partial<Options>](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/141) (#140)
|
|
207
|
-
|
|
208
|
-
## v0.4.5
|
|
209
|
-
|
|
210
|
-
- [Fix(types): Add types to the plugin](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/139) (#137)
|
|
211
|
-
- [Fix(vue): Avoid false positive of no-consecutive-blank-lines TSLint rule in Vue file](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/138) (#130)
|
|
212
|
-
|
|
213
|
-
## v0.4.4
|
|
214
|
-
|
|
215
|
-
- [Fix(vue): resolve src attribute on the script block on Vue files](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/pull/130) (#111, #85)
|
|
216
|
-
- Add TypeScript ^3.0.0 to peerDependencies
|
|
217
|
-
|
|
218
|
-
## v0.4.3
|
|
219
|
-
|
|
220
|
-
- Fix "File system lag can cause Invalid source file errors to slip through" (#127)
|
|
221
|
-
|
|
222
|
-
## v0.4.2
|
|
223
|
-
|
|
224
|
-
- Format messages when `async` is false
|
|
225
|
-
|
|
226
|
-
## v0.4.1
|
|
227
|
-
|
|
228
|
-
- Fix webpack 4 hooks bug
|
|
229
|
-
|
|
230
|
-
## v0.4.0
|
|
231
|
-
|
|
232
|
-
- Support webpack 4
|
|
233
|
-
|
|
234
|
-
## v0.3.0
|
|
235
|
-
|
|
236
|
-
- Add `vue` support
|
|
237
|
-
|
|
238
|
-
## v0.2.10
|
|
239
|
-
|
|
240
|
-
- Fix #80 "Cannot read property 'getLineAndCharacterOfPosition' of undefined"
|
|
241
|
-
- Fix #76 "TypeError: Cannot read property '0' of undefined"
|
|
242
|
-
|
|
243
|
-
## v0.2.9
|
|
244
|
-
|
|
245
|
-
- Make errors formatting closer to `ts-loader` style
|
|
246
|
-
- Handle tslint exclude option
|
|
247
|
-
|
|
248
|
-
## v0.2.8
|
|
249
|
-
|
|
250
|
-
- Add `checkSyntacticErrors` option
|
|
251
|
-
- Fix `process.env` pass to the child process
|
|
252
|
-
- Add `fork-ts-checker-service-before-start` hook
|
|
253
|
-
|
|
254
|
-
## v0.2.7
|
|
255
|
-
|
|
256
|
-
- Fix service is not killed when webpack watch is done
|
|
257
|
-
|
|
258
|
-
## v0.2.6
|
|
259
|
-
|
|
260
|
-
- Add diagnostics/lints formatters - `formatter` and `formatterOptions` option
|
|
261
|
-
|
|
262
|
-
## v0.2.5
|
|
263
|
-
|
|
264
|
-
- Add `async` option - more information in `README.md`
|
|
265
|
-
|
|
266
|
-
## v0.2.4
|
|
267
|
-
|
|
268
|
-
- Fix `ESLint: "fork-ts-checker-webpack-plugin" is not published.` issue
|
|
269
|
-
|
|
270
|
-
## v0.2.3
|
|
271
|
-
|
|
272
|
-
- Add support for webpack 3 as peerDependency
|
|
273
|
-
|
|
274
|
-
## v0.2.2
|
|
275
|
-
|
|
276
|
-
- Force `isolatedModule: false` in checker compiler for better performance
|
|
277
|
-
|
|
278
|
-
## v0.2.1
|
|
279
|
-
|
|
280
|
-
- Fix for `tslint: true` option issue
|
|
281
|
-
|
|
282
|
-
## v0.2.0
|
|
283
|
-
|
|
284
|
-
- tsconfig.json and tslint.json path are not printed anymore.
|
|
285
|
-
- `watch` option is not used on 'build' mode
|
|
286
|
-
- Handle case with no options object (`new ForkTsCheckerWebpacPlugin()`)
|
|
287
|
-
- Basic integration tests (along units)
|
|
288
|
-
- **Breaking changes**:
|
|
289
|
-
- tslint is not enabled by default - you have to set `tslint: true` or `tslint: './path/to/tslint.json'` to enable it.
|
|
290
|
-
- `blockEmit` option is removed - it choose automatically - blocks always on 'build' mode, never on 'watch' mode.
|
|
291
|
-
|
|
292
|
-
## v0.1.5
|
|
293
|
-
|
|
294
|
-
- Disable tslint if module is not installed and no tslint path is passed
|
|
295
|
-
- Improve README.md
|
|
296
|
-
|
|
297
|
-
## v0.1.4
|
|
298
|
-
|
|
299
|
-
- Fix send to closed channel case
|
|
300
|
-
- Fix removed files case
|
|
301
|
-
- Add `fork-ts-checker-service-start-error` hook
|
|
302
|
-
|
|
303
|
-
## v0.1.3
|
|
304
|
-
|
|
305
|
-
- Fix "Cannot read property 'mtime' of undefined on OSX"
|
|
306
|
-
|
|
307
|
-
## v0.1.2
|
|
308
|
-
|
|
309
|
-
- Workers mode works correctly (fixed typo)
|
|
310
|
-
|
|
311
|
-
## v0.1.1
|
|
312
|
-
|
|
313
|
-
- Support memory limit in multi-process mode
|
|
314
|
-
- Handle already closed channel case on sending ipc message
|
|
315
|
-
|
|
316
|
-
## v0.1.0
|
|
317
|
-
|
|
318
|
-
- Initial release - not production ready.
|