@rspack/cli 2.2.4 → 2.2.5

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 +10 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1134,7 +1134,7 @@ class RspackCLI {
1134
1134
  this.colors = this.createColors();
1135
1135
  this.program = program;
1136
1136
  program.help();
1137
- program.version("2.2.4");
1137
+ program.version("2.2.5");
1138
1138
  }
1139
1139
  wrapAction(fn) {
1140
1140
  return (...args)=>{
@@ -1233,12 +1233,19 @@ class RspackCLI {
1233
1233
  if (!installed) (item.plugins ??= []).push(new rspack.ProgressPlugin());
1234
1234
  }
1235
1235
  const cacheOptions = item.cache;
1236
- if ('object' == typeof cacheOptions && 'persistent' === cacheOptions.type) {
1236
+ if ('object' == typeof cacheOptions && ('persistent' === cacheOptions.type || 'filesystem' === cacheOptions.type)) {
1237
1237
  const configPaths = pathMap.get(item);
1238
- if (configPaths) cacheOptions.buildDependencies = [
1238
+ if (configPaths) if ('persistent' === cacheOptions.type) cacheOptions.buildDependencies = [
1239
1239
  ...configPaths,
1240
1240
  ...cacheOptions.buildDependencies || []
1241
1241
  ];
1242
+ else cacheOptions.buildDependencies = {
1243
+ ...cacheOptions.buildDependencies,
1244
+ config: [
1245
+ ...configPaths,
1246
+ ...cacheOptions.buildDependencies?.config || []
1247
+ ]
1248
+ };
1242
1249
  }
1243
1250
  if (void 0 === item.stats) item.stats = {
1244
1251
  preset: 'errors-warnings',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/cli",
3
- "version": "2.2.4",
3
+ "version": "2.2.5",
4
4
  "description": "CLI for rspack",
5
5
  "homepage": "https://rspack.rs",
6
6
  "bugs": "https://github.com/web-infra-dev/rspack/issues",
@@ -31,7 +31,7 @@
31
31
  "@discoveryjs/json-ext": "^1.1.0",
32
32
  "@microsoft/api-extractor": "^7.59.1",
33
33
  "@rstackjs/load-config": "^1.0.0",
34
- "@rspack/core": "2.2.4",
34
+ "@rspack/core": "2.2.5",
35
35
  "@rspack/dev-server": "^2.2.1",
36
36
  "cac": "^7.0.0",
37
37
  "concat-stream": "^2.0.0",