ts-checker-rspack-plugin 1.5.1 → 1.5.2
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 +5 -5
- package/lib/index.js +4 -4
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -128,17 +128,17 @@ In this mode, the plugin runs the TypeScript Go binary in a child process, parse
|
|
|
128
128
|
|
|
129
129
|
Supported options include `typescript.configFile`, `typescript.context`, `typescript.build`, `typescript.resolveRoot`, `typescript.typescriptPath`, `async`, and `logger`. It also supports `tsconfig.json` compiler options used by `tsgo`, including `incremental` and `composite`.
|
|
130
130
|
|
|
131
|
-
Install
|
|
131
|
+
Install the latest TypeScript to enable `tsgo` automatically:
|
|
132
132
|
|
|
133
133
|
```sh
|
|
134
134
|
# with npm
|
|
135
|
-
npm install -D typescript@
|
|
135
|
+
npm install -D typescript@latest
|
|
136
136
|
|
|
137
137
|
# with yarn
|
|
138
|
-
yarn add -D typescript@
|
|
138
|
+
yarn add -D typescript@latest
|
|
139
139
|
|
|
140
140
|
# with pnpm
|
|
141
|
-
pnpm add -D typescript@
|
|
141
|
+
pnpm add -D typescript@latest
|
|
142
142
|
```
|
|
143
143
|
|
|
144
144
|
Or install `@typescript/native-preview` and enable `tsgo` explicitly:
|
|
@@ -162,7 +162,7 @@ new TsCheckerRspackPlugin({
|
|
|
162
162
|
});
|
|
163
163
|
```
|
|
164
164
|
|
|
165
|
-
> The `@typescript/native-preview` usage is deprecated and kept only for compatibility. We recommend installing `typescript@
|
|
165
|
+
> The `@typescript/native-preview` usage is deprecated and kept only for compatibility. We recommend installing `typescript@latest` to use `tsgo`.
|
|
166
166
|
|
|
167
167
|
Limitations:
|
|
168
168
|
|
package/lib/index.js
CHANGED
|
@@ -3726,7 +3726,7 @@ var __webpack_exports__ = {};
|
|
|
3726
3726
|
const TYPESCRIPT_PREVIEW_PACKAGE_JSON = `${TYPESCRIPT_PREVIEW_PACKAGE}/package.json`;
|
|
3727
3727
|
function resolveTypeScriptGoPackageJsonPath(config) {
|
|
3728
3728
|
if (!external_node_path_default().isAbsolute(config.typescriptPath) || 'package.json' !== external_node_path_default().basename(config.typescriptPath)) throw new Error("The typescriptPath option must be an absolute path to a package.json file when tsgo is enabled.");
|
|
3729
|
-
if (!config.tsgoPackage) throw new Error(`The typescriptPath option must point to "${TYPESCRIPT_PREVIEW_PACKAGE_JSON}" or "${TYPESCRIPT_PACKAGE}@
|
|
3729
|
+
if (!config.tsgoPackage) throw new Error(`The typescriptPath option must point to "${TYPESCRIPT_PREVIEW_PACKAGE_JSON}" or "${TYPESCRIPT_PACKAGE}@latest".`);
|
|
3730
3730
|
return config.typescriptPath;
|
|
3731
3731
|
}
|
|
3732
3732
|
async function resolveTypeScriptGoNativeExecutablePath(packageJsonPath, packageName) {
|
|
@@ -4184,11 +4184,11 @@ var __webpack_exports__ = {};
|
|
|
4184
4184
|
}
|
|
4185
4185
|
function createTypeScriptGoSupportError(config, error) {
|
|
4186
4186
|
const message = [
|
|
4187
|
-
`When you enable TsCheckerRspackPlugin with \`typescript.tsgo\`, you must install \`${TYPESCRIPT_PACKAGE}@
|
|
4187
|
+
`When you enable TsCheckerRspackPlugin with \`typescript.tsgo\`, you must install \`${TYPESCRIPT_PACKAGE}@latest\` or \`${TYPESCRIPT_PREVIEW_PACKAGE}\` package.`
|
|
4188
4188
|
];
|
|
4189
|
-
if (!isDefaultTypeScriptGoPath(config.typescriptPath)) message.push(`If you set \`typescript.typescriptPath\`, it must be an absolute path to \`${TYPESCRIPT_PACKAGE_JSON}\` from \`${TYPESCRIPT_PACKAGE}@
|
|
4189
|
+
if (!isDefaultTypeScriptGoPath(config.typescriptPath)) message.push(`If you set \`typescript.typescriptPath\`, it must be an absolute path to \`${TYPESCRIPT_PACKAGE_JSON}\` from \`${TYPESCRIPT_PACKAGE}@latest\` or \`${TYPESCRIPT_PREVIEW_PACKAGE_JSON}\`.`);
|
|
4190
4190
|
if (error instanceof Error && error.message) message.push(`Failed to resolve the tsgo executable: ${error.message}`);
|
|
4191
|
-
message.push(`You can install it with \`npm add ${TYPESCRIPT_PACKAGE}@
|
|
4191
|
+
message.push(`You can install it with \`npm add ${TYPESCRIPT_PACKAGE}@latest -D\` or \`npm add ${TYPESCRIPT_PREVIEW_PACKAGE} -D\`.`);
|
|
4192
4192
|
return new Error(message.join(external_node_os_default().EOL));
|
|
4193
4193
|
}
|
|
4194
4194
|
function assertTypeScriptGoSupport(config) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ts-checker-rspack-plugin",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.2",
|
|
4
4
|
"description": "Runs typescript type checker and linter on separate process.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rspack",
|
|
@@ -25,26 +25,26 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@rspack/lite-tapable": "^1.1.2",
|
|
27
27
|
"chokidar": "^3.6.0",
|
|
28
|
-
"memfs": "^4.57.
|
|
28
|
+
"memfs": "^4.57.8",
|
|
29
29
|
"picocolors": "^1.1.1"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
32
|
"@babel/code-frame": "^7.29.7",
|
|
33
|
-
"@rslib/core": "^0.
|
|
34
|
-
"@rslint/core": "^0.6.
|
|
35
|
-
"@rspack/core": "^2.
|
|
36
|
-
"@rstest/core": "^0.10.
|
|
33
|
+
"@rslib/core": "^0.23.1",
|
|
34
|
+
"@rslint/core": "^0.6.4",
|
|
35
|
+
"@rspack/core": "^2.1.2",
|
|
36
|
+
"@rstest/core": "^0.10.6",
|
|
37
37
|
"@types/babel__code-frame": "^7.27.0",
|
|
38
38
|
"@types/is-glob": "^4.0.4",
|
|
39
39
|
"@types/mock-fs": "^4.13.4",
|
|
40
40
|
"@types/node": "^24.13.2",
|
|
41
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
41
|
+
"@typescript/native-preview": "7.0.0-dev.20260630.1",
|
|
42
42
|
"cross-env": "^10.1.0",
|
|
43
43
|
"husky": "^9.1.7",
|
|
44
44
|
"is-glob": "^4.0.3",
|
|
45
45
|
"minimatch": "^10.2.5",
|
|
46
46
|
"mock-fs": "^5.5.0",
|
|
47
|
-
"prettier": "^3.
|
|
47
|
+
"prettier": "^3.9.4",
|
|
48
48
|
"strip-ansi": "^7.2.0",
|
|
49
49
|
"typescript": "^6.0.3"
|
|
50
50
|
},
|