@rspack/cli 2.2.0-rc.0 → 2.2.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/dist/index.js +3 -3
- 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
|
|
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,
|
|
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
|
|
1124
|
+
program.version("2.2.0");
|
|
1125
1125
|
}
|
|
1126
1126
|
wrapAction(fn) {
|
|
1127
1127
|
return (...args)=>{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/cli",
|
|
3
|
-
"version": "2.2.0
|
|
3
|
+
"version": "2.2.0",
|
|
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.
|
|
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.
|
|
42
|
+
"rstack": "^0.6.4",
|
|
44
43
|
"typescript": "^6.0.3",
|
|
45
|
-
"@rspack/core": "2.2.0
|
|
46
|
-
"@rspack/test-tools": "2.2.0-rc.0"
|
|
44
|
+
"@rspack/core": "2.2.0"
|
|
47
45
|
},
|
|
48
46
|
"peerDependencies": {
|
|
49
47
|
"@rspack/core": "^2.0.0-0",
|