@rspack/cli 1.0.0-beta.1 → 1.0.0-beta.3
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/cli.js +1 -1
- package/dist/commands/build.js +1 -1
- package/dist/utils/options.js +2 -1
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -125,7 +125,7 @@ class RspackCLI {
|
|
|
125
125
|
}
|
|
126
126
|
else if (!item.entry) {
|
|
127
127
|
const defaultEntryBase = node_path_1.default.resolve(process.cwd(), defaultEntry);
|
|
128
|
-
const defaultEntryPath = (0, findConfig_1.default)(defaultEntryBase) || defaultEntryBase
|
|
128
|
+
const defaultEntryPath = (0, findConfig_1.default)(defaultEntryBase) || `${defaultEntryBase}.js`; // default entry is js
|
|
129
129
|
item.entry = {
|
|
130
130
|
main: defaultEntryPath
|
|
131
131
|
};
|
package/dist/commands/build.js
CHANGED
package/dist/utils/options.js
CHANGED
|
@@ -98,7 +98,8 @@ function normalizeEnv(argv) {
|
|
|
98
98
|
const [allKeys, val] = value.split(/=(.+)/, 2);
|
|
99
99
|
const splitKeys = allKeys.split(/\.(?!$)/);
|
|
100
100
|
let prevRef = previous;
|
|
101
|
-
splitKeys.forEach((
|
|
101
|
+
splitKeys.forEach((key, index) => {
|
|
102
|
+
let someKey = key;
|
|
102
103
|
// https://github.com/webpack/webpack-cli/issues/3284
|
|
103
104
|
if (someKey.endsWith("=")) {
|
|
104
105
|
// remove '=' from key
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rspack/cli",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "CLI for rspack",
|
|
6
6
|
"publishConfig": {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"cross-env": "^7.0.3",
|
|
39
39
|
"execa": "^5.0.0",
|
|
40
40
|
"internal-ip": "6.2.0",
|
|
41
|
-
"@rspack/core": "1.0.0-beta.
|
|
41
|
+
"@rspack/core": "1.0.0-beta.3"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@discoveryjs/json-ext": "^0.5.7",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"semver": "^7.6.2",
|
|
50
50
|
"webpack-bundle-analyzer": "4.6.1",
|
|
51
51
|
"yargs": "17.6.2",
|
|
52
|
-
"@rspack/dev-server": "1.0.0-beta.
|
|
52
|
+
"@rspack/dev-server": "1.0.0-beta.3"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "tsc -b ./tsconfig.build.json",
|