@rspack/cli 2.2.0-rc.0 → 2.2.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.
Files changed (2) hide show
  1. package/dist/index.js +6 -4
  2. package/package.json +4 -6
package/dist/index.js CHANGED
@@ -974,7 +974,7 @@ const DEFAULT_EXTENSIONS = [
974
974
  const findConfig = (basePath)=>DEFAULT_EXTENSIONS.map((ext)=>basePath + ext).find(node_fs.existsSync);
975
975
  const utils_findConfig = findConfig;
976
976
  const loadConfig_require = createRequire(import.meta.url);
977
- const loadConfig_DEFAULT_CONFIG_NAME = 'rspack.config';
977
+ const DEFAULT_CONFIG_NAME = 'rspack.config';
978
978
  const loadConfigByPath = async (configPath, options)=>{
979
979
  const configParams = [
980
980
  options.env,
@@ -1079,7 +1079,7 @@ async function loadRspackConfig(options, cwd = process.cwd()) {
1079
1079
  configPath = node_path.resolve(cwd, options.config);
1080
1080
  if (!node_fs.existsSync(configPath)) throw new Error(`config file "${configPath}" not found.`);
1081
1081
  } else {
1082
- const defaultConfig = utils_findConfig(node_path.resolve(cwd, loadConfig_DEFAULT_CONFIG_NAME));
1082
+ const defaultConfig = utils_findConfig(node_path.resolve(cwd, DEFAULT_CONFIG_NAME));
1083
1083
  if (!defaultConfig) return null;
1084
1084
  configPath = defaultConfig;
1085
1085
  }
@@ -1121,7 +1121,7 @@ class RspackCLI {
1121
1121
  this.colors = this.createColors();
1122
1122
  this.program = program;
1123
1123
  program.help();
1124
- program.version("2.2.0-rc.0");
1124
+ program.version("2.2.1");
1125
1125
  }
1126
1126
  wrapAction(fn) {
1127
1127
  return (...args)=>{
@@ -1229,7 +1229,8 @@ class RspackCLI {
1229
1229
  }
1230
1230
  if (void 0 === item.stats) item.stats = {
1231
1231
  preset: 'errors-warnings',
1232
- timings: true
1232
+ timings: true,
1233
+ logging: false
1233
1234
  };
1234
1235
  else if ('boolean' == typeof item.stats) item.stats = item.stats ? {
1235
1236
  preset: 'normal'
@@ -1239,6 +1240,7 @@ class RspackCLI {
1239
1240
  else if ('string' == typeof item.stats) item.stats = {
1240
1241
  preset: item.stats
1241
1242
  };
1243
+ else if (void 0 === item.stats.preset && true !== item.stats.all) item.stats.logging ??= false;
1242
1244
  return item;
1243
1245
  };
1244
1246
  if (Array.isArray(item)) return Promise.all(item.map(internalBuildConfig));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/cli",
3
- "version": "2.2.0-rc.0",
3
+ "version": "2.2.1",
4
4
  "description": "CLI for rspack",
5
5
  "homepage": "https://rspack.rs",
6
6
  "bugs": "https://github.com/web-infra-dev/rspack/issues",
@@ -29,21 +29,19 @@
29
29
  ],
30
30
  "devDependencies": {
31
31
  "@discoveryjs/json-ext": "^1.1.0",
32
- "@microsoft/api-extractor": "^7.58.12",
32
+ "@microsoft/api-extractor": "^7.58.13",
33
33
  "@rstackjs/load-config": "^0.1.2",
34
34
  "@rspack/dev-server": "^2.2.0",
35
35
  "cac": "^7.0.0",
36
36
  "concat-stream": "^2.0.0",
37
- "cross-env": "^10.1.0",
38
37
  "execa": "^5.1.1",
39
38
  "exit-hook": "^5.1.0",
40
39
  "jiti": "^2.7.0",
41
40
  "prebundle": "^1.6.5",
42
41
  "rspack-merge": "1.0.1",
43
- "rstack": "^0.6.2",
42
+ "rstack": "^0.6.4",
44
43
  "typescript": "^6.0.3",
45
- "@rspack/core": "2.2.0-rc.0",
46
- "@rspack/test-tools": "2.2.0-rc.0"
44
+ "@rspack/core": "2.2.1"
47
45
  },
48
46
  "peerDependencies": {
49
47
  "@rspack/core": "^2.0.0-0",