@rspack/cli 0.5.0 → 0.5.1

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.
@@ -18,11 +18,13 @@ export declare const commonOptions: (yargs: yargs.Argv<{}>) => yargs.Argv<yargs.
18
18
  mode: {
19
19
  type: "string";
20
20
  describe: string;
21
+ alias: string;
21
22
  };
22
23
  watch: {
23
24
  type: "boolean";
24
25
  default: boolean;
25
26
  describe: string;
27
+ alias: string;
26
28
  };
27
29
  env: {
28
30
  type: "array";
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.normalizeEnv = exports.previewOptions = exports.commonOptions = void 0;
4
4
  const commonOptions = (yargs) => {
5
- return yargs.options({
5
+ return yargs
6
+ .options({
6
7
  config: {
7
8
  g: true,
8
9
  type: "string",
@@ -18,11 +19,12 @@ const commonOptions = (yargs) => {
18
19
  type: "string",
19
20
  describe: "output path dir"
20
21
  },
21
- mode: { type: "string", describe: "mode" },
22
+ mode: { type: "string", describe: "mode", alias: "m" },
22
23
  watch: {
23
24
  type: "boolean",
24
25
  default: false,
25
- describe: "watch"
26
+ describe: "watch",
27
+ alias: "w"
26
28
  },
27
29
  env: {
28
30
  type: "array",
@@ -43,7 +45,8 @@ const commonOptions = (yargs) => {
43
45
  string: true,
44
46
  describe: "Name of the configuration to use."
45
47
  }
46
- });
48
+ })
49
+ .alias({ v: "version", h: "help" });
47
50
  };
48
51
  exports.commonOptions = commonOptions;
49
52
  const previewOptions = (yargs) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspack/cli",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "license": "MIT",
5
5
  "description": "CLI for rspack",
6
6
  "bin": {
@@ -24,6 +24,7 @@
24
24
  },
25
25
  "devDependencies": {
26
26
  "@types/rechoir": "^0.6.1",
27
+ "@types/semver": "^7.5.6",
27
28
  "@types/webpack-bundle-analyzer": "^4.6.0",
28
29
  "concat-stream": "^2.0.0",
29
30
  "cross-env": "^7.0.3",
@@ -31,7 +32,7 @@
31
32
  "internal-ip": "6.2.0",
32
33
  "source-map-support": "^0.5.19",
33
34
  "ts-node": "10.9.1",
34
- "@rspack/core": "0.5.0"
35
+ "@rspack/core": "0.5.1"
35
36
  },
36
37
  "dependencies": {
37
38
  "@discoveryjs/json-ext": "^0.5.7",
@@ -42,7 +43,7 @@
42
43
  "semver": "6.3.1",
43
44
  "webpack-bundle-analyzer": "4.6.1",
44
45
  "yargs": "17.6.2",
45
- "@rspack/dev-server": "0.5.0"
46
+ "@rspack/dev-server": "0.5.1"
46
47
  },
47
48
  "scripts": {
48
49
  "build": "tsc -b ./tsconfig.build.json",