@rspack/cli 1.0.0-alpha.3 → 1.0.0-alpha.4

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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -3
  2. package/package.json +7 -4
package/dist/cli.js CHANGED
@@ -50,8 +50,8 @@ class RspackCLI {
50
50
  process.env.RSPACK_CONFIG_VALIDATE = "loose";
51
51
  process.env.WATCHPACK_WATCHER_LIMIT =
52
52
  process.env.WATCHPACK_WATCHER_LIMIT || "20";
53
- let nodeEnv = process?.env?.NODE_ENV;
54
- let rspackCommandDefaultEnv = rspackCommand === "build" ? "production" : "development";
53
+ const nodeEnv = process?.env?.NODE_ENV;
54
+ const rspackCommandDefaultEnv = rspackCommand === "build" ? "production" : "development";
55
55
  if (typeof options.nodeEnv === "string") {
56
56
  process.env.NODE_ENV = nodeEnv || options.nodeEnv;
57
57
  }
@@ -170,7 +170,7 @@ class RspackCLI {
170
170
  item.devtool = isBuild ? "source-map" : "cheap-module-source-map";
171
171
  }
172
172
  if (isServe) {
173
- let installed = (item.plugins ||= []).find(item => item instanceof rspackCore.ProgressPlugin);
173
+ const installed = (item.plugins ||= []).find(item => item instanceof rspackCore.ProgressPlugin);
174
174
  if (!installed) {
175
175
  (item.plugins ??= []).push(new rspackCore.ProgressPlugin());
176
176
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/cli",
3
- "version": "1.0.0-alpha.3",
3
+ "version": "1.0.0-alpha.4",
4
4
  "license": "MIT",
5
5
  "description": "CLI for rspack",
6
6
  "publishConfig": {
@@ -24,17 +24,20 @@
24
24
  "directory": "packages/rspack-cli"
25
25
  },
26
26
  "peerDependencies": {
27
- "@rspack/core": ">=0.4.0"
27
+ "@rspack/core": "^1.0.0-alpha"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@types/rechoir": "^0.6.1",
31
+ "@types/interpret": "^1.1.3",
31
32
  "@types/semver": "^7.5.6",
32
33
  "@types/webpack-bundle-analyzer": "^4.6.0",
34
+ "@types/yargs": "17.0.32",
35
+ "ts-node": "^10.9.2",
33
36
  "concat-stream": "^2.0.0",
34
37
  "cross-env": "^7.0.3",
35
38
  "execa": "^5.0.0",
36
39
  "internal-ip": "6.2.0",
37
- "@rspack/core": "1.0.0-alpha.3"
40
+ "@rspack/core": "1.0.0-alpha.4"
38
41
  },
39
42
  "dependencies": {
40
43
  "@discoveryjs/json-ext": "^0.5.7",
@@ -45,7 +48,7 @@
45
48
  "semver": "6.3.1",
46
49
  "webpack-bundle-analyzer": "4.6.1",
47
50
  "yargs": "17.6.2",
48
- "@rspack/dev-server": "1.0.0-alpha.3"
51
+ "@rspack/dev-server": "1.0.0-alpha.4"
49
52
  },
50
53
  "scripts": {
51
54
  "build": "tsc -b ./tsconfig.build.json",