@rsbuild/plugin-type-check 0.0.14 → 0.0.16

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 (2) hide show
  1. package/dist/index.js +25 -25
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -57,33 +57,33 @@ const pluginTypeCheck = (options = {}) => {
57
57
  );
58
58
  return;
59
59
  }
60
- const typeCheckerOptions = (0, import_shared.mergeChainedOptions)(
61
- {
62
- typescript: {
63
- // avoid OOM issue
64
- memoryLimit: 8192,
65
- // use tsconfig of user project
66
- configFile: api.context.tsconfigPath,
67
- typescriptPath
68
- },
69
- issue: {
70
- exclude: [
71
- { file: "**/*.(spec|test).ts" },
72
- { file: "**/node_modules/**/*" }
73
- ]
60
+ const defaultOptions = {
61
+ typescript: {
62
+ // avoid OOM issue
63
+ memoryLimit: 8192,
64
+ // use tsconfig of user project
65
+ configFile: api.context.tsconfigPath,
66
+ typescriptPath
67
+ },
68
+ issue: {
69
+ exclude: [
70
+ { file: "**/*.(spec|test).ts" },
71
+ { file: "**/node_modules/**/*" }
72
+ ]
73
+ },
74
+ logger: {
75
+ log() {
74
76
  },
75
- logger: {
76
- log() {
77
- },
78
- error(message) {
79
- console.error(message.replace(/ERROR/g, "Type Error"));
80
- }
77
+ error(message) {
78
+ console.error(message.replace(/ERROR/g, "Type Error"));
81
79
  }
82
- },
83
- forkTsCheckerOptions,
84
- void 0,
85
- import_deepmerge.deepmerge
86
- );
80
+ }
81
+ };
82
+ const typeCheckerOptions = (0, import_shared.mergeChainedOptions)({
83
+ defaults: defaultOptions,
84
+ options: forkTsCheckerOptions,
85
+ mergeFn: import_deepmerge.deepmerge
86
+ });
87
87
  if (api.context.bundlerType === "rspack" && chain.get("mode") === "production") {
88
88
  import_shared.logger.info("Ts checker running...");
89
89
  import_shared.logger.info(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsbuild/plugin-type-check",
3
- "version": "0.0.14",
3
+ "version": "0.0.16",
4
4
  "description": "TS checker plugin of Rsbuild",
5
5
  "homepage": "https://rsbuild.dev",
6
6
  "repository": {
@@ -22,15 +22,15 @@
22
22
  ],
23
23
  "dependencies": {
24
24
  "fork-ts-checker-webpack-plugin": "9.0.0",
25
- "@rsbuild/shared": "0.0.14"
25
+ "@rsbuild/shared": "0.0.16"
26
26
  },
27
27
  "devDependencies": {
28
28
  "typescript": "^5.2.2",
29
- "@rsbuild/core": "0.0.14",
30
- "@rsbuild/test-helper": "0.0.14"
29
+ "@rsbuild/core": "0.0.16",
30
+ "@rsbuild/test-helper": "0.0.16"
31
31
  },
32
32
  "peerDependencies": {
33
- "@rsbuild/core": "^0.0.14"
33
+ "@rsbuild/core": "^0.0.16"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public",