@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 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 + ".js"; // default entry is js
128
+ const defaultEntryPath = (0, findConfig_1.default)(defaultEntryBase) || `${defaultEntryBase}.js`; // default entry is js
129
129
  item.entry = {
130
130
  main: defaultEntryPath
131
131
  };
@@ -62,7 +62,7 @@ class BuildCommand {
62
62
  logger.error(error);
63
63
  process.exit(2);
64
64
  }
65
- if (stats && stats.hasErrors()) {
65
+ if (stats?.hasErrors()) {
66
66
  process.exitCode = 1;
67
67
  }
68
68
  if (!compiler || !stats) {
@@ -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((someKey, index) => {
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.1",
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.1"
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.1"
52
+ "@rspack/dev-server": "1.0.0-beta.3"
53
53
  },
54
54
  "scripts": {
55
55
  "build": "tsc -b ./tsconfig.build.json",