fork-ts-checker-webpack-plugin 6.3.5 → 7.0.0-alpha.10

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.
Files changed (170) hide show
  1. package/README.md +25 -103
  2. package/lib/ForkTsCheckerWebpackPlugin.d.ts +11 -12
  3. package/lib/ForkTsCheckerWebpackPlugin.js +29 -49
  4. package/lib/ForkTsCheckerWebpackPluginConfiguration.d.ts +6 -8
  5. package/lib/ForkTsCheckerWebpackPluginConfiguration.js +3 -4
  6. package/lib/ForkTsCheckerWebpackPluginOptions.d.ts +4 -6
  7. package/lib/ForkTsCheckerWebpackPluginOptions.json +73 -111
  8. package/lib/ForkTsCheckerWebpackPluginState.d.ts +4 -4
  9. package/lib/ForkTsCheckerWebpackPluginState.js +1 -0
  10. package/lib/error/OperationCanceledError.js +1 -0
  11. package/lib/formatter/BasicFormatter.d.ts +1 -1
  12. package/lib/formatter/BasicFormatter.js +1 -0
  13. package/lib/formatter/CodeFrameFormatter.d.ts +1 -1
  14. package/lib/formatter/CodeFrameFormatter.js +2 -1
  15. package/lib/formatter/Formatter.d.ts +1 -1
  16. package/lib/formatter/FormatterConfiguration.d.ts +3 -3
  17. package/lib/formatter/FormatterConfiguration.js +21 -2
  18. package/lib/formatter/FormatterOptions.d.ts +11 -6
  19. package/lib/formatter/WebpackFormatter.d.ts +1 -1
  20. package/lib/formatter/WebpackFormatter.js +6 -6
  21. package/lib/formatter/index.d.ts +0 -1
  22. package/lib/formatter/index.js +16 -8
  23. package/lib/hooks/interceptDoneToGetWebpackDevServerTap.d.ts +3 -3
  24. package/lib/hooks/interceptDoneToGetWebpackDevServerTap.js +1 -0
  25. package/lib/hooks/pluginHooks.d.ts +13 -13
  26. package/lib/hooks/pluginHooks.js +1 -0
  27. package/lib/hooks/pluginPools.d.ts +4 -0
  28. package/lib/hooks/pluginPools.js +28 -0
  29. package/lib/hooks/tapAfterCompileToAddDependencies.d.ts +3 -3
  30. package/lib/hooks/tapAfterCompileToAddDependencies.js +1 -0
  31. package/lib/hooks/tapAfterCompileToGetIssues.d.ts +3 -3
  32. package/lib/hooks/tapAfterCompileToGetIssues.js +2 -1
  33. package/lib/hooks/tapAfterEnvironmentToPatchWatching.d.ts +2 -2
  34. package/lib/hooks/tapAfterEnvironmentToPatchWatching.js +4 -1
  35. package/lib/hooks/tapDoneToAsyncGetIssues.d.ts +3 -3
  36. package/lib/hooks/tapDoneToAsyncGetIssues.js +3 -2
  37. package/lib/hooks/tapErrorToLogMessage.d.ts +2 -2
  38. package/lib/hooks/tapErrorToLogMessage.js +4 -3
  39. package/lib/hooks/tapStartToConnectAndRunReporter.d.ts +4 -4
  40. package/lib/hooks/tapStartToConnectAndRunReporter.js +16 -11
  41. package/lib/hooks/tapStopToDisconnectReporter.d.ts +3 -3
  42. package/lib/hooks/tapStopToDisconnectReporter.js +1 -0
  43. package/lib/issue/Issue.d.ts +2 -3
  44. package/lib/issue/Issue.js +2 -3
  45. package/lib/issue/IssueConfiguration.d.ts +3 -3
  46. package/lib/issue/IssueConfiguration.js +1 -0
  47. package/lib/issue/IssueLocation.d.ts +2 -2
  48. package/lib/issue/IssueLocation.js +17 -2
  49. package/lib/issue/IssueMatch.d.ts +3 -3
  50. package/lib/issue/IssueMatch.js +3 -3
  51. package/lib/issue/IssueOptions.d.ts +2 -2
  52. package/lib/issue/IssuePosition.js +1 -0
  53. package/lib/issue/IssuePredicate.d.ts +1 -1
  54. package/lib/issue/IssuePredicate.js +1 -0
  55. package/lib/issue/IssueSeverity.js +1 -0
  56. package/lib/issue/IssueWebpackError.d.ts +3 -3
  57. package/lib/issue/IssueWebpackError.js +7 -5
  58. package/lib/issue/index.js +13 -6
  59. package/lib/logger/LoggerConfiguration.d.ts +3 -3
  60. package/lib/logger/LoggerConfiguration.js +2 -1
  61. package/lib/logger/LoggerFactory.d.ts +2 -2
  62. package/lib/logger/LoggerFactory.js +2 -1
  63. package/lib/logger/LoggerOptions.d.ts +2 -2
  64. package/lib/logger/PartialLogger.d.ts +1 -1
  65. package/lib/logger/PartialLogger.js +1 -0
  66. package/lib/logger/WebpackInfrastructureLogger.d.ts +2 -2
  67. package/lib/logger/WebpackInfrastructureLogger.js +1 -0
  68. package/lib/profile/Performance.js +1 -0
  69. package/lib/reporter/AggregatedReporter.d.ts +1 -1
  70. package/lib/reporter/AggregatedReporter.js +5 -4
  71. package/lib/reporter/FilesChange.d.ts +1 -1
  72. package/lib/reporter/FilesChange.js +2 -1
  73. package/lib/reporter/Report.d.ts +2 -2
  74. package/lib/reporter/Reporter.d.ts +3 -3
  75. package/lib/reporter/index.js +17 -7
  76. package/lib/reporter/reporter-rpc/ReporterRpcClient.d.ts +2 -2
  77. package/lib/reporter/reporter-rpc/ReporterRpcClient.js +7 -4
  78. package/lib/reporter/reporter-rpc/ReporterRpcProcedure.d.ts +8 -5
  79. package/lib/reporter/reporter-rpc/ReporterRpcProcedure.js +3 -0
  80. package/lib/reporter/reporter-rpc/ReporterRpcService.d.ts +2 -2
  81. package/lib/reporter/reporter-rpc/ReporterRpcService.js +5 -2
  82. package/lib/rpc/RpcClient.d.ts +2 -2
  83. package/lib/rpc/RpcClient.js +2 -1
  84. package/lib/rpc/RpcMessage.d.ts +1 -1
  85. package/lib/rpc/RpcMessage.js +3 -0
  86. package/lib/rpc/RpcMessageChannel.d.ts +1 -1
  87. package/lib/rpc/RpcMessageChannel.js +1 -0
  88. package/lib/rpc/RpcService.d.ts +2 -2
  89. package/lib/rpc/RpcService.js +1 -0
  90. package/lib/rpc/error/RpcMessagePortClosedError.js +1 -0
  91. package/lib/rpc/error/RpcRemoteError.js +1 -0
  92. package/lib/rpc/index.js +17 -7
  93. package/lib/rpc/rpc-ipc/RpcIpcMessageChannel.d.ts +1 -1
  94. package/lib/rpc/rpc-ipc/RpcIpcMessageChannel.js +1 -0
  95. package/lib/rpc/rpc-ipc/RpcIpcMessagePort.d.ts +2 -2
  96. package/lib/rpc/rpc-ipc/RpcIpcMessagePort.js +1 -0
  97. package/lib/rpc/rpc-ipc/error/RpcIpcMessagePortClosedError.js +1 -0
  98. package/lib/rpc/rpc-ipc/index.js +12 -5
  99. package/lib/typescript-reporter/TypeScriptConfigurationOverwrite.d.ts +1 -1
  100. package/lib/typescript-reporter/TypeScriptReporterConfiguration.d.ts +5 -5
  101. package/lib/typescript-reporter/TypeScriptReporterConfiguration.js +2 -0
  102. package/lib/typescript-reporter/TypeScriptReporterOptions.d.ts +4 -5
  103. package/lib/typescript-reporter/TypeScriptSupport.d.ts +1 -1
  104. package/lib/typescript-reporter/TypeScriptSupport.js +26 -11
  105. package/lib/typescript-reporter/extension/TypeScriptEmbeddedExtension.d.ts +1 -1
  106. package/lib/typescript-reporter/extension/TypeScriptEmbeddedExtension.js +2 -1
  107. package/lib/typescript-reporter/extension/TypeScriptExtension.d.ts +2 -2
  108. package/lib/typescript-reporter/extension/vue/TypeScriptVueExtension.d.ts +2 -2
  109. package/lib/typescript-reporter/extension/vue/TypeScriptVueExtension.js +4 -3
  110. package/lib/typescript-reporter/extension/vue/TypeScriptVueExtensionConfiguration.d.ts +1 -1
  111. package/lib/typescript-reporter/extension/vue/TypeScriptVueExtensionConfiguration.js +1 -0
  112. package/lib/typescript-reporter/extension/vue/TypeScriptVueExtensionSupport.d.ts +1 -1
  113. package/lib/typescript-reporter/extension/vue/TypeScriptVueExtensionSupport.js +1 -0
  114. package/lib/typescript-reporter/extension/vue/types/vue__compiler-sfc.d.ts +0 -1
  115. package/lib/typescript-reporter/file-system/FileSystem.d.ts +1 -1
  116. package/lib/typescript-reporter/file-system/MemFileSystem.d.ts +1 -1
  117. package/lib/typescript-reporter/file-system/MemFileSystem.js +2 -0
  118. package/lib/typescript-reporter/file-system/PassiveFileSystem.d.ts +1 -1
  119. package/lib/typescript-reporter/file-system/PassiveFileSystem.js +1 -0
  120. package/lib/typescript-reporter/file-system/RealFileSystem.d.ts +1 -1
  121. package/lib/typescript-reporter/file-system/RealFileSystem.js +2 -0
  122. package/lib/typescript-reporter/issue/TypeScriptIssueFactory.d.ts +1 -1
  123. package/lib/typescript-reporter/issue/TypeScriptIssueFactory.js +17 -5
  124. package/lib/typescript-reporter/profile/TypeScriptPerformance.d.ts +1 -1
  125. package/lib/typescript-reporter/profile/TypeScriptPerformance.js +1 -0
  126. package/lib/typescript-reporter/reporter/ControlledCompilerHost.d.ts +5 -0
  127. package/lib/typescript-reporter/reporter/ControlledCompilerHost.js +14 -0
  128. package/lib/typescript-reporter/reporter/ControlledTypeScriptSystem.d.ts +1 -1
  129. package/lib/typescript-reporter/reporter/ControlledTypeScriptSystem.js +7 -18
  130. package/lib/typescript-reporter/reporter/ControlledWatchCompilerHost.d.ts +2 -2
  131. package/lib/typescript-reporter/reporter/ControlledWatchCompilerHost.js +1 -0
  132. package/lib/typescript-reporter/reporter/ControlledWatchSolutionBuilderHost.d.ts +2 -2
  133. package/lib/typescript-reporter/reporter/ControlledWatchSolutionBuilderHost.js +1 -0
  134. package/lib/typescript-reporter/reporter/TypeScriptConfigurationParser.d.ts +2 -2
  135. package/lib/typescript-reporter/reporter/TypeScriptConfigurationParser.js +8 -2
  136. package/lib/typescript-reporter/reporter/TypeScriptReporter.d.ts +2 -2
  137. package/lib/typescript-reporter/reporter/TypeScriptReporter.js +42 -18
  138. package/lib/typescript-reporter/reporter/TypeScriptReporterRpcClient.d.ts +2 -2
  139. package/lib/typescript-reporter/reporter/TypeScriptReporterRpcClient.js +1 -0
  140. package/lib/typescript-reporter/reporter/TypeScriptReporterRpcService.js +2 -2
  141. package/lib/utils/async/pool.d.ts +1 -0
  142. package/lib/utils/async/pool.js +10 -0
  143. package/lib/utils/path/relativeToContext.d.ts +2 -0
  144. package/lib/utils/path/relativeToContext.js +16 -0
  145. package/lib/watch/InclusiveNodeWatchFileSystem.d.ts +5 -5
  146. package/lib/watch/InclusiveNodeWatchFileSystem.js +90 -92
  147. package/lib/watch/WatchFileSystem.d.ts +5 -22
  148. package/package.json +50 -67
  149. package/CHANGELOG.md +0 -318
  150. package/changelog.config.js +0 -36
  151. package/lib/eslint-reporter/EsLintReporterConfiguration.d.ts +0 -11
  152. package/lib/eslint-reporter/EsLintReporterConfiguration.js +0 -26
  153. package/lib/eslint-reporter/EsLintReporterOptions.d.ts +0 -8
  154. package/lib/eslint-reporter/EsLintReporterOptions.js +0 -2
  155. package/lib/eslint-reporter/assertEsLintSupport.d.ts +0 -3
  156. package/lib/eslint-reporter/assertEsLintSupport.js +0 -30
  157. package/lib/eslint-reporter/issue/EsLintIssueFactory.d.ts +0 -4
  158. package/lib/eslint-reporter/issue/EsLintIssueFactory.js +0 -32
  159. package/lib/eslint-reporter/reporter/EsLintReporter.d.ts +0 -4
  160. package/lib/eslint-reporter/reporter/EsLintReporter.js +0 -133
  161. package/lib/eslint-reporter/reporter/EsLintReporterRpcClient.d.ts +0 -4
  162. package/lib/eslint-reporter/reporter/EsLintReporterRpcClient.js +0 -13
  163. package/lib/eslint-reporter/reporter/EsLintReporterRpcService.d.ts +0 -1
  164. package/lib/eslint-reporter/reporter/EsLintReporterRpcService.js +0 -11
  165. package/lib/eslint-reporter/types/eslint.d.ts +0 -31
  166. package/lib/eslint-reporter/types/eslint.js +0 -2
  167. package/lib/formatter/FormatterFactory.d.ts +0 -13
  168. package/lib/formatter/FormatterFactory.js +0 -18
  169. package/lib/watch/CompilerWithWatchFileSystem.d.ts +0 -6
  170. package/lib/watch/CompilerWithWatchFileSystem.js +0 -2
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.
@@ -1,36 +0,0 @@
1
- module.exports = {
2
- list: ['feat', 'fix', 'refactor', 'perf', 'test', 'chore', 'docs'],
3
- maxMessageLength: 64,
4
- minMessageLength: 3,
5
- questions: ['type', 'subject', 'body', 'breaking', 'issues'],
6
- types: {
7
- feat: {
8
- description: 'A new feature',
9
- value: 'feat',
10
- },
11
- fix: {
12
- description: 'A bug fix',
13
- value: 'fix',
14
- },
15
- refactor: {
16
- description: 'A code change that neither adds a feature or fixes a bug',
17
- value: 'refactor',
18
- },
19
- perf: {
20
- description: 'A code change that improves performance',
21
- value: 'perf',
22
- },
23
- test: {
24
- description: 'Adding missing tests',
25
- value: 'test',
26
- },
27
- chore: {
28
- description: 'Build process, CI or auxiliary tool changes',
29
- value: 'chore',
30
- },
31
- docs: {
32
- description: 'Documentation only changes',
33
- value: 'docs',
34
- },
35
- },
36
- };
@@ -1,11 +0,0 @@
1
- import webpack from 'webpack';
2
- import { EsLintReporterOptions } from './EsLintReporterOptions';
3
- import { CLIEngineOptions } from './types/eslint';
4
- interface EsLintReporterConfiguration {
5
- enabled: boolean;
6
- memoryLimit: number;
7
- options: CLIEngineOptions;
8
- files: string[];
9
- }
10
- declare function createEsLintReporterConfiguration(compiler: webpack.Compiler, options: EsLintReporterOptions | undefined): EsLintReporterConfiguration;
11
- export { EsLintReporterConfiguration, createEsLintReporterConfiguration };
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const path_1 = require("path");
4
- function castToArray(value) {
5
- if (!value) {
6
- return [];
7
- }
8
- else if (!Array.isArray(value)) {
9
- return [value];
10
- }
11
- else {
12
- return value;
13
- }
14
- }
15
- function createEsLintReporterConfiguration(compiler, options) {
16
- const filesPatterns = (typeof options === 'object' ? castToArray(options.files) : []).map((filesPattern) =>
17
- // ensure that `filesPattern` is an absolute path
18
- path_1.isAbsolute(filesPattern)
19
- ? filesPattern
20
- : path_1.join(compiler.options.context || process.cwd(), filesPattern));
21
- return Object.assign(Object.assign({ enabled: !!options &&
22
- typeof options !== 'boolean' &&
23
- filesPatterns.length > 0 && // enable by default if files are provided
24
- options.enabled !== false, memoryLimit: 2048 }, (typeof options === 'object' ? options : {})), { files: filesPatterns, options: Object.assign({ cwd: compiler.options.context || process.cwd(), extensions: ['.ts', '.tsx', '.js', '.jsx'] }, (typeof options === 'object' ? options.options || {} : {})) });
25
- }
26
- exports.createEsLintReporterConfiguration = createEsLintReporterConfiguration;
@@ -1,8 +0,0 @@
1
- import { CLIEngineOptions } from './types/eslint';
2
- declare type EsLintReporterOptions = {
3
- files: string | string[];
4
- enabled?: boolean;
5
- memoryLimit?: number;
6
- options?: CLIEngineOptions;
7
- };
8
- export { EsLintReporterOptions };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- import { EsLintReporterConfiguration } from './EsLintReporterConfiguration';
2
- declare function assertEsLintSupport(configuration: EsLintReporterConfiguration): void;
3
- export { assertEsLintSupport };
@@ -1,30 +0,0 @@
1
- "use strict";
2
- var __importStar = (this && this.__importStar) || function (mod) {
3
- if (mod && mod.__esModule) return mod;
4
- var result = {};
5
- if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
6
- result["default"] = mod;
7
- return result;
8
- };
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- const semver = __importStar(require("semver"));
11
- function assertEsLintSupport(configuration) {
12
- if (semver.lt(process.version, '8.10.0')) {
13
- throw new Error(`To use 'eslint' option, please update to Node.js >= v8.10.0 ` +
14
- `(current version is ${process.version})`);
15
- }
16
- let eslintVersion;
17
- try {
18
- eslintVersion = require('eslint').Linter.version;
19
- }
20
- catch (error) {
21
- throw new Error(`When you use 'eslint' option, make sure to install 'eslint'.`);
22
- }
23
- if (semver.lt(eslintVersion, '6.0.0')) {
24
- throw new Error(`Cannot use current eslint version of ${eslintVersion}, the minimum required version is 6.0.0`);
25
- }
26
- if (!configuration.files) {
27
- throw new Error('The `eslint.files` settings is required for EsLint reporter to work.');
28
- }
29
- }
30
- exports.assertEsLintSupport = assertEsLintSupport;
@@ -1,4 +0,0 @@
1
- import { Issue } from '../../issue';
2
- import { LintResult } from '../types/eslint';
3
- declare function createIssuesFromEsLintResults(results: LintResult[]): Issue[];
4
- export { createIssuesFromEsLintResults };
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- function createIssueFromEsLintMessage(filePath, message) {
4
- let location;
5
- if (message.line) {
6
- location = {
7
- start: {
8
- line: message.line,
9
- column: message.column,
10
- },
11
- end: {
12
- line: message.endLine || message.line,
13
- column: message.endColumn || message.column,
14
- },
15
- };
16
- }
17
- return {
18
- origin: 'eslint',
19
- code: message.ruleId ? String(message.ruleId) : '[unknown]',
20
- severity: message.severity === 1 ? 'warning' : 'error',
21
- message: message.message,
22
- file: filePath,
23
- location,
24
- };
25
- }
26
- function createIssuesFromEsLintResults(results) {
27
- return results.reduce((messages, result) => [
28
- ...messages,
29
- ...result.messages.map((message) => createIssueFromEsLintMessage(result.filePath, message)),
30
- ], []);
31
- }
32
- exports.createIssuesFromEsLintResults = createIssuesFromEsLintResults;
@@ -1,4 +0,0 @@
1
- import { EsLintReporterConfiguration } from '../EsLintReporterConfiguration';
2
- import { Reporter } from '../../reporter';
3
- declare function createEsLintReporter(configuration: EsLintReporterConfiguration): Reporter;
4
- export { createEsLintReporter };
@@ -1,133 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- const EsLintIssueFactory_1 = require("../issue/EsLintIssueFactory");
16
- const path_1 = require("path");
17
- const minimatch_1 = __importDefault(require("minimatch"));
18
- const glob_1 = __importDefault(require("glob"));
19
- function createEsLintReporter(configuration) {
20
- // eslint-disable-next-line @typescript-eslint/no-var-requires
21
- const { CLIEngine } = require('eslint');
22
- const engine = new CLIEngine(configuration.options);
23
- let isInitialRun = true;
24
- let isInitialGetFiles = true;
25
- const lintResults = new Map();
26
- const includedGlobPatterns = engine.resolveFileGlobPatterns(configuration.files);
27
- const includedFiles = new Set();
28
- function isFileIncluded(path) {
29
- return (!path.includes('node_modules') &&
30
- includedGlobPatterns.some((pattern) => minimatch_1.default(path, pattern)) &&
31
- !engine.isPathIgnored(path));
32
- }
33
- function getFiles() {
34
- return __awaiter(this, void 0, void 0, function* () {
35
- if (isInitialGetFiles) {
36
- isInitialGetFiles = false;
37
- const resolvedGlobs = yield Promise.all(includedGlobPatterns.map((globPattern) => new Promise((resolve) => {
38
- glob_1.default(globPattern, (error, resolvedFiles) => {
39
- if (error) {
40
- // fail silently
41
- resolve([]);
42
- }
43
- else {
44
- resolve(resolvedFiles || []);
45
- }
46
- });
47
- })));
48
- for (const resolvedGlob of resolvedGlobs) {
49
- for (const resolvedFile of resolvedGlob) {
50
- if (isFileIncluded(resolvedFile)) {
51
- includedFiles.add(resolvedFile);
52
- }
53
- }
54
- }
55
- }
56
- return Array.from(includedFiles);
57
- });
58
- }
59
- function getDirs() {
60
- return includedGlobPatterns || [];
61
- }
62
- function getExtensions() {
63
- return configuration.options.extensions || [];
64
- }
65
- return {
66
- getReport: ({ changedFiles = [], deletedFiles = [] }) => __awaiter(this, void 0, void 0, function* () {
67
- return {
68
- getDependencies() {
69
- return __awaiter(this, void 0, void 0, function* () {
70
- for (const changedFile of changedFiles) {
71
- if (isFileIncluded(changedFile)) {
72
- includedFiles.add(changedFile);
73
- }
74
- }
75
- for (const deletedFile of deletedFiles) {
76
- includedFiles.delete(deletedFile);
77
- }
78
- return {
79
- files: (yield getFiles()).map((file) => path_1.normalize(file)),
80
- dirs: getDirs().map((dir) => path_1.normalize(dir)),
81
- excluded: [],
82
- extensions: getExtensions(),
83
- };
84
- });
85
- },
86
- getIssues() {
87
- return __awaiter(this, void 0, void 0, function* () {
88
- // cleanup old results
89
- for (const changedFile of changedFiles) {
90
- lintResults.delete(changedFile);
91
- }
92
- for (const deletedFile of deletedFiles) {
93
- lintResults.delete(deletedFile);
94
- }
95
- // get reports
96
- const lintReports = [];
97
- if (isInitialRun) {
98
- lintReports.push(engine.executeOnFiles(includedGlobPatterns));
99
- isInitialRun = false;
100
- }
101
- else {
102
- // we need to take care to not lint files that are not included by the configuration.
103
- // the eslint engine will not exclude them automatically
104
- const changedAndIncludedFiles = changedFiles.filter((changedFile) => isFileIncluded(changedFile));
105
- if (changedAndIncludedFiles.length) {
106
- lintReports.push(engine.executeOnFiles(changedAndIncludedFiles));
107
- }
108
- }
109
- // output fixes if `fix` option is provided
110
- if (configuration.options.fix) {
111
- yield Promise.all(lintReports.map((lintReport) => CLIEngine.outputFixes(lintReport)));
112
- }
113
- // store results
114
- for (const lintReport of lintReports) {
115
- for (const lintResult of lintReport.results) {
116
- lintResults.set(lintResult.filePath, lintResult);
117
- }
118
- }
119
- // get actual list of previous and current reports
120
- const results = Array.from(lintResults.values());
121
- return EsLintIssueFactory_1.createIssuesFromEsLintResults(results);
122
- });
123
- },
124
- close() {
125
- return __awaiter(this, void 0, void 0, function* () {
126
- // do nothing
127
- });
128
- },
129
- };
130
- }),
131
- };
132
- }
133
- exports.createEsLintReporter = createEsLintReporter;
@@ -1,4 +0,0 @@
1
- import { EsLintReporterConfiguration } from '../EsLintReporterConfiguration';
2
- import { ReporterRpcClient } from '../../reporter';
3
- declare function createEsLintReporterRpcClient(configuration: EsLintReporterConfiguration): ReporterRpcClient;
4
- export { createEsLintReporterRpcClient };
@@ -1,13 +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
- const path_1 = __importDefault(require("path"));
7
- const reporter_1 = require("../../reporter");
8
- const rpc_ipc_1 = require("../../rpc/rpc-ipc");
9
- function createEsLintReporterRpcClient(configuration) {
10
- const channel = rpc_ipc_1.createRpcIpcMessageChannel(path_1.default.resolve(__dirname, './EsLintReporterRpcService.js'), configuration.memoryLimit);
11
- return reporter_1.createReporterRpcClient(channel, configuration);
12
- }
13
- exports.createEsLintReporterRpcClient = createEsLintReporterRpcClient;
@@ -1,11 +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
- const process_1 = __importDefault(require("process"));
7
- const EsLintReporter_1 = require("./EsLintReporter");
8
- const reporter_1 = require("../../reporter");
9
- const rpc_ipc_1 = require("../../rpc/rpc-ipc");
10
- const service = reporter_1.registerReporterRpcService(rpc_ipc_1.createRpcIpcMessagePort(process_1.default), EsLintReporter_1.createEsLintReporter);
11
- service.open();