@rspack/cli 1.0.0-beta.4 → 1.0.0-beta.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.
- package/dist/cli.js +0 -9
- package/package.json +3 -3
package/dist/cli.js
CHANGED
|
@@ -37,10 +37,8 @@ const helpers_1 = require("yargs/helpers");
|
|
|
37
37
|
const build_1 = require("./commands/build");
|
|
38
38
|
const preview_1 = require("./commands/preview");
|
|
39
39
|
const serve_1 = require("./commands/serve");
|
|
40
|
-
const findConfig_1 = __importDefault(require("./utils/findConfig"));
|
|
41
40
|
const loadConfig_1 = require("./utils/loadConfig");
|
|
42
41
|
const options_1 = require("./utils/options");
|
|
43
|
-
const defaultEntry = "src/index";
|
|
44
42
|
class RspackCLI {
|
|
45
43
|
constructor() {
|
|
46
44
|
this.colors = this.createColors();
|
|
@@ -123,13 +121,6 @@ class RspackCLI {
|
|
|
123
121
|
main: options.entry.map(x => node_path_1.default.resolve(process.cwd(), x))[0] // Fix me when entry supports array
|
|
124
122
|
};
|
|
125
123
|
}
|
|
126
|
-
else if (!item.entry) {
|
|
127
|
-
const defaultEntryBase = node_path_1.default.resolve(process.cwd(), defaultEntry);
|
|
128
|
-
const defaultEntryPath = (0, findConfig_1.default)(defaultEntryBase) || `${defaultEntryBase}.js`; // default entry is js
|
|
129
|
-
item.entry = {
|
|
130
|
-
main: defaultEntryPath
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
124
|
// to set output.path
|
|
134
125
|
item.output = item.output || {};
|
|
135
126
|
if (options["output-path"]) {
|
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.5",
|
|
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.5"
|
|
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.5"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"build": "tsc -b ./tsconfig.build.json",
|