ts-checker-rspack-plugin 1.0.0 → 1.0.1
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
|
@@ -10,7 +10,6 @@ Rspack plugin that runs TypeScript type checker on a separate process.
|
|
|
10
10
|
<a href="https://npmcharts.com/compare/ts-checker-rspack-plugin?minimal=true"><img src="https://img.shields.io/npm/dm/ts-checker-rspack-plugin.svg?style=flat-square&colorA=564341&colorB=EDED91" alt="downloads" /></a>
|
|
11
11
|
</p>
|
|
12
12
|
|
|
13
|
-
|
|
14
13
|
## Credits
|
|
15
14
|
|
|
16
15
|
This plugin is forked from [TypeStrong/fork-ts-checker-webpack-plugin](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin), which is created by [Piotr Oleś](https://github.com/piotr-oles). See the original project's [LICENSE](https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/blob/main/LICENSE).
|
|
@@ -23,6 +22,8 @@ Big thanks to `fork-ts-checker-webpack-plugin` creators and contributors for the
|
|
|
23
22
|
- Supports modern TypeScript features like [project references](https://www.typescriptlang.org/docs/handbook/project-references.html) and [incremental mode](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-4.html#faster-subsequent-builds-with-the---incremental-flag) ✨
|
|
24
23
|
- Displays nice error messages with the [code frame](https://babeljs.io/docs/en/next/babel-code-frame.html) formatter 🌈
|
|
25
24
|
|
|
25
|
+
💡 For Rsbuild projects, use [@rsbuild/plugin-type-check](https://github.com/rspack-contrib/rsbuild-plugin-type-check) to get out-of-the-box experience.
|
|
26
|
+
|
|
26
27
|
## Installation
|
|
27
28
|
|
|
28
29
|
This plugin requires **Node.js >=16.0.0+**, **Rspack ^1.0.0**, **TypeScript ^3.8.0**
|
|
@@ -191,7 +192,7 @@ module.exports = MyRspackPlugin;
|
|
|
191
192
|
|
|
192
193
|
// rspack.config.js
|
|
193
194
|
const { TsCheckerRspackPlugin } = require('ts-checker-rspack-plugin');
|
|
194
|
-
const MyRspackPlugin = require('./src/
|
|
195
|
+
const MyRspackPlugin = require('./src/rspack/MyRspackPlugin');
|
|
195
196
|
|
|
196
197
|
module.exports = {
|
|
197
198
|
/* ... */
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import * as rspack from '@rspack/core';
|
|
2
1
|
import type { FormatterPathType } from '../formatter';
|
|
3
2
|
import type { Issue } from './issue';
|
|
4
|
-
declare class IssueWebpackError extends
|
|
3
|
+
declare class IssueWebpackError extends Error {
|
|
5
4
|
readonly issue: Issue;
|
|
6
5
|
readonly hideStack = true;
|
|
7
6
|
file?: string;
|
|
@@ -1,38 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
4
|
};
|
|
28
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
6
|
exports.IssueWebpackError = void 0;
|
|
30
7
|
const path_1 = __importDefault(require("path"));
|
|
31
|
-
const rspack = __importStar(require("@rspack/core"));
|
|
32
8
|
const forward_slash_1 = require("../utils/path/forward-slash");
|
|
33
9
|
const relative_to_context_1 = require("../utils/path/relative-to-context");
|
|
34
10
|
const issue_location_1 = require("./issue-location");
|
|
35
|
-
class IssueWebpackError extends
|
|
11
|
+
class IssueWebpackError extends Error {
|
|
36
12
|
constructor(message, pathType, issue) {
|
|
37
13
|
super(message);
|
|
38
14
|
this.issue = issue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-checker-rspack-plugin",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Runs typescript type checker and linter on separate process.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rspack",
|
|
@@ -69,6 +69,7 @@
|
|
|
69
69
|
},
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public",
|
|
72
|
+
"provenance": true,
|
|
72
73
|
"registry": "https://registry.npmjs.org/"
|
|
73
74
|
},
|
|
74
75
|
"packageManager": "pnpm@9.14.2"
|