ts-checker-rspack-plugin 1.0.0-beta.1 → 1.0.0

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
@@ -1,9 +1,15 @@
1
- # TS Checker Rspack Plugin
1
+ # ts-checker-rspack-plugin
2
2
 
3
3
  Rspack plugin that runs TypeScript type checker on a separate process.
4
4
 
5
- [![npm version](https://img.shields.io/npm/v/ts-checker-rspack-plugin.svg)](https://www.npmjs.com/package/ts-checker-rspack-plugin)
6
- [![downloads](http://img.shields.io/npm/dm/ts-checker-rspack-plugin.svg)](https://npmjs.org/package/ts-checker-rspack-plugin)
5
+ <p>
6
+ <a href="https://npmjs.com/package/ts-checker-rspack-plugin">
7
+ <img src="https://img.shields.io/npm/v/ts-checker-rspack-plugin?style=flat-square&colorA=564341&colorB=EDED91" alt="npm version" />
8
+ </a>
9
+ <img src="https://img.shields.io/badge/License-MIT-blue.svg?style=flat-square&colorA=564341&colorB=EDED91" alt="license" />
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
+ </p>
12
+
7
13
 
8
14
  ## Credits
9
15
 
@@ -19,7 +25,7 @@ Big thanks to `fork-ts-checker-webpack-plugin` creators and contributors for the
19
25
 
20
26
  ## Installation
21
27
 
22
- This plugin requires **Node.js >=14.0.0+**, **Rspack ^1.0.0**, **TypeScript ^3.6.0**
28
+ This plugin requires **Node.js >=16.0.0+**, **Rspack ^1.0.0**, **TypeScript ^3.8.0**
23
29
 
24
30
  ```sh
25
31
  # with npm
@@ -32,7 +38,7 @@ yarn add -D ts-checker-rspack-plugin
32
38
  pnpm add -D ts-checker-rspack-plugin
33
39
  ```
34
40
 
35
- The minimal webpack config (with [ts-loader](https://github.com/TypeStrong/ts-loader))
41
+ The minimal Rspack config with [builtin:swc-loader](https://rspack.dev/guide/features/builtin-swc-loader).
36
42
 
37
43
  ```js
38
44
  // rspack.config.js
@@ -48,11 +54,14 @@ module.exports = {
48
54
  rules: [
49
55
  {
50
56
  test: /\.tsx?$/,
51
- loader: 'ts-loader',
52
- // add transpileOnly option if you use ts-loader < 9.3.0
53
- // options: {
54
- // transpileOnly: true
55
- // }
57
+ loader: 'builtin:swc-loader',
58
+ options: {
59
+ jsc: {
60
+ parser: {
61
+ syntax: 'typescript',
62
+ },
63
+ },
64
+ },
56
65
  },
57
66
  ],
58
67
  },
@@ -66,9 +75,6 @@ module.exports = {
66
75
  };
67
76
  ```
68
77
 
69
- > Examples how to configure it with [babel-loader](https://github.com/babel/babel-loader), [ts-loader](https://github.com/TypeStrong/ts-loader)
70
- > and [Visual Studio Code](https://code.visualstudio.com/) are in the [**examples**](./examples) directory.
71
-
72
78
  ## Modules resolution
73
79
 
74
80
  It's very important to be aware that **this plugin uses [TypeScript](https://github.com/Microsoft/TypeScript)'s, not
@@ -95,7 +101,7 @@ Options for the TypeScript checker (`typescript` option object).
95
101
 
96
102
  | Name | Type | Default value | Description |
97
103
  | ------------------- | ------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
98
- | `memoryLimit` | `number` | `2048` | Memory limit for the checker process in MB. If the process exits with the allocation failed error, try to increase this number. |
104
+ | `memoryLimit` | `number` | `8192` | Memory limit for the checker process in MB. If the process exits with the allocation failed error, try to increase this number. |
99
105
  | `configFile` | `string` | `'tsconfig.json'` | Path to the `tsconfig.json` file (path relative to the `compiler.options.context` or absolute path) |
100
106
  | `configOverwrite` | `object` | `{ compilerOptions: { skipLibCheck: true, sourceMap: false, inlineSourceMap: false, declarationMap: false } }` | This configuration will overwrite configuration from the `tsconfig.json` file. Supported fields are: `extends`, `compilerOptions`, `include`, `exclude`, `files`, and `references`. |
101
107
  | `context` | `string` | `dirname(configuration.configFile)` | The base path for finding files specified in the `tsconfig.json`. Same as the `context` option from the [ts-loader](https://github.com/TypeStrong/ts-loader#context). Useful if you want to keep your `tsconfig.json` in an external package. Keep in mind that **not** having a `tsconfig.json` in your project root can cause different behaviour between `ts-checker-rspack-plugin` and `tsc`. When using editors like `VS Code` it is advised to add a `tsconfig.json` file to the root of the project and extend the config file referenced in option `configFile`. |
@@ -165,10 +171,10 @@ When we call this method with a [Rspack compiler instance](https://rspack.dev/ap
165
171
  [tapable](https://github.com/webpack/tapable) hooks where you can pass in your callbacks.
166
172
 
167
173
  ```js
168
- // ./src/webpack/MyWebpackPlugin.js
174
+ // ./src/rspack/MyRspackPlugin.js
169
175
  const { TsCheckerRspackPlugin } = require('ts-checker-rspack-plugin');
170
176
 
171
- class MyWebpackPlugin {
177
+ class MyRspackPlugin {
172
178
  apply(compiler) {
173
179
  const hooks = TsCheckerRspackPlugin.getCompilerHooks(compiler);
174
180
 
@@ -181,15 +187,15 @@ class MyWebpackPlugin {
181
187
  }
182
188
  }
183
189
 
184
- module.exports = MyWebpackPlugin;
190
+ module.exports = MyRspackPlugin;
185
191
 
186
192
  // rspack.config.js
187
193
  const { TsCheckerRspackPlugin } = require('ts-checker-rspack-plugin');
188
- const MyWebpackPlugin = require('./src/webpack/MyWebpackPlugin');
194
+ const MyRspackPlugin = require('./src/webpack/MyRspackPlugin');
189
195
 
190
196
  module.exports = {
191
197
  /* ... */
192
- plugins: [new TsCheckerRspackPlugin(), new MyWebpackPlugin()],
198
+ plugins: [new TsCheckerRspackPlugin(), new MyRspackPlugin()],
193
199
  };
194
200
  ```
195
201
 
@@ -4,10 +4,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.createBasicFormatter = void 0;
7
- const chalk_1 = __importDefault(require("chalk"));
7
+ const picocolors_1 = __importDefault(require("picocolors"));
8
8
  function createBasicFormatter() {
9
9
  return function basicFormatter(issue) {
10
- return chalk_1.default.grey(issue.code + ': ') + issue.message;
10
+ return picocolors_1.default.gray(issue.code + ': ') + issue.message;
11
11
  };
12
12
  }
13
13
  exports.createBasicFormatter = createBasicFormatter;
@@ -4,16 +4,16 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.statsFormatter = void 0;
7
- const chalk_1 = __importDefault(require("chalk"));
7
+ const picocolors_1 = __importDefault(require("picocolors"));
8
8
  // mimics webpack's stats summary formatter
9
9
  function statsFormatter(issues, stats) {
10
10
  const errorsNumber = issues.filter((issue) => issue.severity === 'error').length;
11
11
  const warningsNumber = issues.filter((issue) => issue.severity === 'warning').length;
12
12
  const errorsFormatted = errorsNumber
13
- ? chalk_1.default.red.bold(`${errorsNumber} ${errorsNumber === 1 ? 'error' : 'errors'}`)
13
+ ? picocolors_1.default.bold(picocolors_1.default.red(`${errorsNumber} ${errorsNumber === 1 ? 'error' : 'errors'}`))
14
14
  : '';
15
15
  const warningsFormatted = warningsNumber
16
- ? chalk_1.default.yellow.bold(`${warningsNumber} ${warningsNumber === 1 ? 'warning' : 'warnings'}`)
16
+ ? picocolors_1.default.bold(picocolors_1.default.yellow(`${warningsNumber} ${warningsNumber === 1 ? 'warning' : 'warnings'}`))
17
17
  : '';
18
18
  const timeFormatted = stats.startTime ? Math.round(Date.now() - stats.startTime) : 0;
19
19
  return [
@@ -6,26 +6,26 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.createWebpackFormatter = void 0;
7
7
  const os_1 = __importDefault(require("os"));
8
8
  const path_1 = __importDefault(require("path"));
9
- const chalk_1 = __importDefault(require("chalk"));
9
+ const picocolors_1 = __importDefault(require("picocolors"));
10
10
  const issue_1 = require("../issue");
11
11
  const forward_slash_1 = require("../utils/path/forward-slash");
12
12
  const relative_to_context_1 = require("../utils/path/relative-to-context");
13
13
  function createWebpackFormatter(formatter, pathType) {
14
14
  // mimics webpack error formatter
15
15
  return function webpackFormatter(issue) {
16
- const color = issue.severity === 'warning' ? chalk_1.default.yellow.bold : chalk_1.default.red.bold;
16
+ const color = issue.severity === 'warning' ? picocolors_1.default.yellow : picocolors_1.default.red;
17
17
  const severity = issue.severity.toUpperCase();
18
18
  if (issue.file) {
19
- let location = chalk_1.default.bold(pathType === 'absolute'
19
+ let location = picocolors_1.default.bold(pathType === 'absolute'
20
20
  ? (0, forward_slash_1.forwardSlash)(path_1.default.resolve(issue.file))
21
21
  : (0, relative_to_context_1.relativeToContext)(issue.file, process.cwd()));
22
22
  if (issue.location) {
23
- location += `:${chalk_1.default.green.bold((0, issue_1.formatIssueLocation)(issue.location))}`;
23
+ location += `:${picocolors_1.default.bold(picocolors_1.default.green((0, issue_1.formatIssueLocation)(issue.location)))}`;
24
24
  }
25
- return [`${color(severity)} in ${location}`, formatter(issue), ''].join(os_1.default.EOL);
25
+ return [`${picocolors_1.default.bold(color(severity))} in ${location}`, formatter(issue), ''].join(os_1.default.EOL);
26
26
  }
27
27
  else {
28
- return [`${color(severity)} in ` + formatter(issue), ''].join(os_1.default.EOL);
28
+ return [`${picocolors_1.default.bold(color(severity))} in ` + formatter(issue), ''].join(os_1.default.EOL);
29
29
  }
30
30
  };
31
31
  }
@@ -13,7 +13,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.tapDoneToAsyncGetIssues = void 0;
16
- const chalk_1 = __importDefault(require("chalk"));
16
+ const picocolors_1 = __importDefault(require("picocolors"));
17
+ ;
17
18
  const stats_formatter_1 = require("../formatter/stats-formatter");
18
19
  const webpack_formatter_1 = require("../formatter/webpack-formatter");
19
20
  const infrastructure_logger_1 = require("../infrastructure-logger");
@@ -34,7 +35,7 @@ function tapDoneToAsyncGetIssues(compiler, config, state) {
34
35
  try {
35
36
  if (yield (0, is_pending_1.isPending)(issuesPromise)) {
36
37
  hooks.waiting.call(stats.compilation);
37
- config.logger.log(chalk_1.default.cyan('Type-checking in progress...'));
38
+ config.logger.log(picocolors_1.default.cyan('Type-checking in progress...'));
38
39
  }
39
40
  else {
40
41
  // wait 10ms to log issues after webpack stats
@@ -64,7 +65,7 @@ function tapDoneToAsyncGetIssues(compiler, config, state) {
64
65
  config.logger.log((0, stats_formatter_1.statsFormatter)(issues, stats));
65
66
  }
66
67
  else {
67
- config.logger.log(chalk_1.default.green('No errors found.'));
68
+ config.logger.log(picocolors_1.default.green('No errors found.'));
68
69
  }
69
70
  // report issues to webpack-dev-server, if it's listening
70
71
  // skip reporting if there are no issues, to avoid an extra hot reload
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.tapErrorToLogMessage = void 0;
7
- const chalk_1 = __importDefault(require("chalk"));
7
+ const picocolors_1 = __importDefault(require("picocolors"));
8
8
  const plugin_hooks_1 = require("../plugin-hooks");
9
9
  const rpc_1 = require("../rpc");
10
10
  const abort_error_1 = require("../utils/async/abort-error");
@@ -17,12 +17,12 @@ function tapErrorToLogMessage(compiler, config) {
17
17
  config.logger.error(String(error));
18
18
  if (error instanceof rpc_1.RpcExitError) {
19
19
  if (error.signal === 'SIGINT') {
20
- config.logger.error(chalk_1.default.red('Issues checking service interrupted - If running in a docker container, this may be caused ' +
20
+ config.logger.error(picocolors_1.default.red('Issues checking service interrupted - If running in a docker container, this may be caused ' +
21
21
  "by the container running out of memory. If so, try increasing the container's memory limit " +
22
22
  'or lowering the `memoryLimit` value in the TsCheckerRspackPlugin configuration.'));
23
23
  }
24
24
  else {
25
- config.logger.error(chalk_1.default.red('Issues checking service aborted - probably out of memory. ' +
25
+ config.logger.error(picocolors_1.default.red('Issues checking service aborted - probably out of memory. ' +
26
26
  'Check the `memoryLimit` option in the TsCheckerRspackPlugin configuration.\n' +
27
27
  "If increasing the memory doesn't solve the issue, it's most probably a bug in the TypeScript."));
28
28
  }
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.createIssuePredicateFromIssueMatch = void 0;
7
7
  const path_1 = __importDefault(require("path"));
8
- const minimatch_1 = __importDefault(require("minimatch"));
8
+ const minimatch_1 = require("minimatch");
9
9
  const forward_slash_1 = require("../utils/path/forward-slash");
10
10
  function createIssuePredicateFromIssueMatch(context, match) {
11
11
  return (issue) => {
@@ -13,7 +13,7 @@ function createIssuePredicateFromIssueMatch(context, match) {
13
13
  const matchesCode = !match.code || match.code === issue.code;
14
14
  const matchesFile = !issue.file ||
15
15
  (!!issue.file &&
16
- (!match.file || (0, minimatch_1.default)((0, forward_slash_1.forwardSlash)(path_1.default.relative(context, issue.file)), match.file)));
16
+ (!match.file || (0, minimatch_1.minimatch)((0, forward_slash_1.forwardSlash)(path_1.default.relative(context, issue.file)), match.file)));
17
17
  return matchesSeverity && matchesCode && matchesFile;
18
18
  };
19
19
  }
package/lib/plugin.d.ts CHANGED
@@ -3,7 +3,6 @@ import type { TsCheckerRspackPluginOptions } from './plugin-options';
3
3
  declare class TsCheckerRspackPlugin {
4
4
  /**
5
5
  * Current version of the plugin
6
- * TODO: use `define` to replace it
7
6
  */
8
7
  static readonly version: string;
9
8
  /**
package/lib/plugin.js CHANGED
@@ -36,6 +36,8 @@ const plugin_pools_1 = require("./plugin-pools");
36
36
  const plugin_state_1 = require("./plugin-state");
37
37
  const rpc_1 = require("./rpc");
38
38
  const type_script_support_1 = require("./typescript/type-script-support");
39
+ const node_fs_1 = require("node:fs");
40
+ const pkgJson = JSON.parse((0, node_fs_1.readFileSync)(path.join(__dirname, '../package.json'), 'utf-8'));
39
41
  class TsCheckerRspackPlugin {
40
42
  constructor(options = {}) {
41
43
  this.options = options;
@@ -59,9 +61,8 @@ class TsCheckerRspackPlugin {
59
61
  exports.TsCheckerRspackPlugin = TsCheckerRspackPlugin;
60
62
  /**
61
63
  * Current version of the plugin
62
- * TODO: use `define` to replace it
63
64
  */
64
- TsCheckerRspackPlugin.version = '1.0.0-beta.1';
65
+ TsCheckerRspackPlugin.version = pkgJson.version;
65
66
  /**
66
67
  * Default pools for the plugin concurrency limit
67
68
  */
@@ -1,27 +1,4 @@
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
  };
@@ -29,7 +6,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
6
  exports.assertTypeScriptSupport = void 0;
30
7
  const os_1 = __importDefault(require("os"));
31
8
  const node_fs_1 = __importDefault(require("node:fs"));
32
- const semver = __importStar(require("semver"));
33
9
  function assertTypeScriptSupport(config) {
34
10
  let typescriptVersion;
35
11
  try {
@@ -42,18 +18,6 @@ function assertTypeScriptSupport(config) {
42
18
  if (!typescriptVersion) {
43
19
  throw new Error('When you use TsCheckerRspackPlugin with typescript reporter enabled, you must install `typescript` package.');
44
20
  }
45
- if (semver.lt(typescriptVersion, '3.6.0')) {
46
- throw new Error([
47
- `TsCheckerRspackPlugin cannot use the current typescript version of ${typescriptVersion}.`,
48
- 'The minimum required version is 3.6.0.',
49
- ].join(os_1.default.EOL));
50
- }
51
- if (config.build && semver.lt(typescriptVersion, '3.8.0')) {
52
- throw new Error([
53
- `TsCheckerRspackPlugin doesn't support build option for the current typescript version of ${typescriptVersion}.`,
54
- 'The minimum required version is 3.8.0.',
55
- ].join(os_1.default.EOL));
56
- }
57
21
  if (!node_fs_1.default.existsSync(config.configFile)) {
58
22
  throw new Error([
59
23
  `Cannot find the "${config.configFile}" file.`,
@@ -13,6 +13,6 @@ function createTypeScriptWorkerConfig(compiler, options) {
13
13
  : path_1.default.resolve(compiler.options.context || process.cwd(), configFile));
14
14
  const optionsAsObject = typeof options === 'object' ? options : {};
15
15
  const typescriptPath = optionsAsObject.typescriptPath || require.resolve('typescript');
16
- return Object.assign(Object.assign({ enabled: Boolean(options) || options === undefined, memoryLimit: 2048, build: false, mode: optionsAsObject.build ? 'write-tsbuildinfo' : 'readonly', profile: false }, optionsAsObject), { configFile: configFile, configOverwrite: optionsAsObject.configOverwrite || {}, context: optionsAsObject.context || path_1.default.dirname(configFile), diagnosticOptions: Object.assign({ syntactic: false, semantic: true, declaration: false, global: false }, (optionsAsObject.diagnosticOptions || {})), typescriptPath: typescriptPath });
16
+ return Object.assign(Object.assign({ enabled: Boolean(options) || options === undefined, memoryLimit: 8192, build: false, mode: optionsAsObject.build ? 'write-tsbuildinfo' : 'readonly', profile: false }, optionsAsObject), { configFile: configFile, configOverwrite: optionsAsObject.configOverwrite || {}, context: optionsAsObject.context || path_1.default.dirname(configFile), diagnosticOptions: Object.assign({ syntactic: false, semantic: true, declaration: false, global: false }, (optionsAsObject.diagnosticOptions || {})), typescriptPath: typescriptPath });
17
17
  }
18
18
  exports.createTypeScriptWorkerConfig = createTypeScriptWorkerConfig;
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.InclusiveNodeWatchFileSystem = void 0;
7
7
  const path_1 = require("path");
8
8
  const chokidar_1 = __importDefault(require("chokidar"));
9
- const minimatch_1 = __importDefault(require("minimatch"));
9
+ const minimatch_1 = require("minimatch");
10
10
  const files_change_1 = require("../files-change");
11
11
  const infrastructure_logger_1 = require("../infrastructure-logger");
12
12
  const is_inside_another_path_1 = require("../utils/path/is-inside-another-path");
@@ -16,7 +16,7 @@ function createIsIgnored(ignored, excluded) {
16
16
  const ignoredFunctions = ignoredPatterns.map((pattern) => {
17
17
  // ensure patterns are valid - see https://github.com/TypeStrong/fork-ts-checker-webpack-plugin/issues/594
18
18
  if (typeof pattern === 'string') {
19
- return (path) => (0, minimatch_1.default)(path, pattern);
19
+ return (path) => (0, minimatch_1.minimatch)(path, pattern);
20
20
  }
21
21
  else if (pattern instanceof RegExp) {
22
22
  return (path) => pattern.test(path);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts-checker-rspack-plugin",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0",
4
4
  "description": "Runs typescript type checker and linter on separate process.",
5
5
  "keywords": [
6
6
  "rspack",
@@ -26,7 +26,8 @@
26
26
  "lint": "echo lint",
27
27
  "test": "pnpm build && pnpm test:unit && pnpm test:e2e",
28
28
  "test:unit": "cross-env jest --config=test/unit/jest.config.js",
29
- "test:e2e": "npm pack && cross-env jest --config=test/e2e/jest.config.js --ci -i -b",
29
+ "test:e2e": "cd test/e2e && pnpm test",
30
+ "test:e2e:setup": "cd test/e2e && pnpm run setup",
30
31
  "precommit": "pnpm build && pnpm test:unit",
31
32
  "prepare": "husky install && pnpm build",
32
33
  "bump": "npx bumpp"
@@ -34,34 +35,28 @@
34
35
  "dependencies": {
35
36
  "@babel/code-frame": "^7.16.7",
36
37
  "@rspack/lite-tapable": "^1.0.0",
37
- "chalk": "^4.1.2",
38
38
  "chokidar": "^3.5.3",
39
39
  "memfs": "^4.14.0",
40
- "minimatch": "^3.0.4",
41
- "semver": "^7.3.5"
40
+ "minimatch": "^9.0.5",
41
+ "picocolors": "^1.1.1"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@rspack/core": "^1.0.0",
45
- "typescript": ">3.6.0"
45
+ "typescript": ">=3.8.0"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@jest/console": "^27.0.0",
49
49
  "@rspack/core": "^1.1.3",
50
50
  "@types/babel__code-frame": "^7.0.3",
51
- "@types/cross-spawn": "^6.0.2",
52
51
  "@types/jest": "^27.4.0",
53
- "@types/minimatch": "^3.0.5",
54
52
  "@types/mock-fs": "^4.13.1",
55
53
  "@types/node": "^16.4.13",
56
- "@types/rimraf": "^3.0.2",
57
- "@types/semver": "^7.3.9",
58
54
  "cross-env": "^7.0.3",
59
55
  "husky": "^7.0.4",
60
56
  "jest": "^27.4.7",
61
57
  "jest-circus": "^27.4.6",
62
58
  "jest-environment-node": "^27.4.6",
63
59
  "jest-runner": "^27.0.0",
64
- "karton": "^0.4.1",
65
60
  "mock-fs": "^5.1.2",
66
61
  "prettier": "^2.5.1",
67
62
  "rimraf": "^3.0.2",
@@ -70,8 +65,7 @@
70
65
  "typescript": "^4.5.5"
71
66
  },
72
67
  "engines": {
73
- "node": ">=16.0.0",
74
- "pnpm": ">=1.0.0"
68
+ "node": ">=16.0.0"
75
69
  },
76
70
  "publishConfig": {
77
71
  "access": "public",