@rspack/cli 1.0.0-beta.0 → 1.0.0-beta.2

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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/cli",
3
- "version": "1.0.0-beta.0",
3
+ "version": "1.0.0-beta.2",
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.0"
41
+ "@rspack/core": "1.0.0-beta.2"
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.0"
52
+ "@rspack/dev-server": "1.0.0-beta.2"
53
53
  },
54
54
  "scripts": {
55
55
  "build": "tsc -b ./tsconfig.build.json",