fork-ts-checker-webpack-plugin 7.2.8 → 7.2.11

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 CHANGED
@@ -54,11 +54,10 @@ module.exports = {
54
54
  {
55
55
  test: /\.tsx?$/,
56
56
  loader: 'ts-loader',
57
- exclude: /node_modules/,
58
- options: {
59
- // disable type checker - we will use it in fork plugin
60
- transpileOnly: true
61
- }
57
+ // add transpileOnly option if you use ts-loader < 9.3.0
58
+ // options: {
59
+ // transpileOnly: true
60
+ // }
62
61
  }
63
62
  ]
64
63
  },
@@ -243,7 +242,8 @@ module.exports = {
243
242
  exclude: /node_modules/,
244
243
  options: {
245
244
  appendTsSuffixTo: [/\.vue$/],
246
- transpileOnly: true
245
+ // add transpileOnly option if you use ts-loader < 9.3.0
246
+ // transpileOnly: true
247
247
  }
248
248
  },
249
249
  {
@@ -14,9 +14,9 @@ function createWebpackFormatter(formatter) {
14
14
  const color = issue.severity === 'warning' ? chalk_1.default.yellow.bold : chalk_1.default.red.bold;
15
15
  const severity = issue.severity.toUpperCase();
16
16
  if (issue.file) {
17
- let location = chalk_1.default.whiteBright.bold((0, relative_to_context_1.relativeToContext)(issue.file, process.cwd()));
17
+ let location = chalk_1.default.bold((0, relative_to_context_1.relativeToContext)(issue.file, process.cwd()));
18
18
  if (issue.location) {
19
- location += ` ${chalk_1.default.green.bold((0, issue_1.formatIssueLocation)(issue.location))}`;
19
+ location += `:${chalk_1.default.green.bold((0, issue_1.formatIssueLocation)(issue.location))}`;
20
20
  }
21
21
  return [`${color(severity)} in ${location}`, formatter(issue), ''].join(os_1.default.EOL);
22
22
  }
@@ -4,5 +4,5 @@ interface IssueLocation {
4
4
  end: IssuePosition;
5
5
  }
6
6
  declare function compareIssueLocations(locationA?: IssueLocation, locationB?: IssueLocation): number;
7
- declare function formatIssueLocation({ start, end }: IssueLocation): string;
7
+ declare function formatIssueLocation(location: IssueLocation): string;
8
8
  export { IssueLocation, compareIssueLocations, formatIssueLocation };
@@ -16,21 +16,7 @@ function compareIssueLocations(locationA, locationB) {
16
16
  (0, issue_position_1.compareIssuePositions)(locationA.end, locationB.end));
17
17
  }
18
18
  exports.compareIssueLocations = compareIssueLocations;
19
- function formatIssueLocation({ start, end }) {
20
- if (!end.line || start.line === end.line) {
21
- // the same line
22
- if (!end.column || start.column === end.column) {
23
- // the same column
24
- return `${start.line}:${start.column}`;
25
- }
26
- else {
27
- // different column
28
- return `${start.line}:${start.column}-${end.column}`;
29
- }
30
- }
31
- else {
32
- // different lines
33
- return `${start.line}:${start.column}-${end.line}:${end.column}`;
34
- }
19
+ function formatIssueLocation(location) {
20
+ return `${location.start.line}:${location.start.column}`;
35
21
  }
36
22
  exports.formatIssueLocation = formatIssueLocation;
@@ -19,7 +19,7 @@ class IssueWebpackError extends webpack_1.default.WebpackError {
19
19
  if (issue.file) {
20
20
  this.file = (0, relative_to_context_1.relativeToContext)(issue.file, process.cwd());
21
21
  if (issue.location) {
22
- this.file += ` ${chalk_1.default.green.bold((0, issue_location_1.formatIssueLocation)(issue.location))}`;
22
+ this.file += `:${chalk_1.default.green.bold((0, issue_location_1.formatIssueLocation)(issue.location))}`;
23
23
  }
24
24
  }
25
25
  Error.captureStackTrace(this, this.constructor);
package/lib/plugin.js CHANGED
@@ -70,7 +70,7 @@ exports.ForkTsCheckerWebpackPlugin = ForkTsCheckerWebpackPlugin;
70
70
  /**
71
71
  * Current version of the plugin
72
72
  */
73
- ForkTsCheckerWebpackPlugin.version = '7.2.8'; // will be replaced by the @semantic-release/exec
73
+ ForkTsCheckerWebpackPlugin.version = '7.2.11'; // will be replaced by the @semantic-release/exec
74
74
  /**
75
75
  * Default pools for the plugin concurrency limit
76
76
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fork-ts-checker-webpack-plugin",
3
- "version": "7.2.8",
3
+ "version": "7.2.11",
4
4
  "description": "Runs typescript type checker and linter on separate process.",
5
5
  "keywords": [
6
6
  "webpack",