bundle-stats 3.4.0-alpha.5 → 4.0.0-alpha.7

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/bin/index.js +11 -5
  2. package/package.json +12 -12
package/bin/index.js CHANGED
@@ -30,7 +30,8 @@ if (demo) {
30
30
  path.resolve(__dirname, '../__fixtures__/webpack-stats-baseline.json'),
31
31
  ],
32
32
  });
33
- return;
33
+
34
+ process.exit(0);
34
35
  }
35
36
 
36
37
  const args = yargs
@@ -69,8 +70,7 @@ const args = yargs
69
70
  .alias('d', 'out-dir')
70
71
  .alias('h', 'help')
71
72
  .alias('v', 'version')
72
- .help()
73
- .argv;
73
+ .help().argv;
74
74
 
75
75
  const {
76
76
  compare,
@@ -78,9 +78,15 @@ const {
78
78
 
79
79
  html,
80
80
  json,
81
- outDir, _: artifactFilepaths,
81
+ outDir,
82
+ _: artifactFilepaths,
82
83
  } = args;
83
84
 
84
85
  run({
85
- baseline, compare, html, json, outDir, artifactFilepaths,
86
+ baseline,
87
+ compare,
88
+ html,
89
+ json,
90
+ outDir,
91
+ artifactFilepaths,
86
92
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bundle-stats",
3
- "version": "3.4.0-alpha.5",
3
+ "version": "4.0.0-alpha.7",
4
4
  "description": "In-depth bundle analyzer for webpack(bundle size, assets, modules, packages)",
5
5
  "main": "lib/index.js",
6
6
  "bin": {
@@ -10,7 +10,7 @@
10
10
  "lib": "lib"
11
11
  },
12
12
  "engines": {
13
- "node": ">= 12.0"
13
+ "node": ">= 14.0"
14
14
  },
15
15
  "scripts": {
16
16
  "lint": "../../node_modules/.bin/eslint . --ext .js",
@@ -43,18 +43,18 @@
43
43
  },
44
44
  "homepage": "https://github.com/relative-ci/bundle-stats/blob/master/packages/cli#readme",
45
45
  "dependencies": {
46
- "@bundle-stats/cli-utils": "^3.4.0-alpha.5",
47
- "@bundle-stats/utils": "^3.4.0-alpha.5",
48
- "boxen": "5.0.0",
49
- "core-js": "3.20.2",
50
- "fs-extra": "10.0.1",
51
- "listr": "0.14.3",
52
- "lodash": "4.17.21",
53
- "update-notifier": "5.1.0",
54
- "yargs": "17.3.1"
46
+ "@bundle-stats/cli-utils": "^4.0.0-alpha.7",
47
+ "@bundle-stats/utils": "^4.0.0-alpha.7",
48
+ "boxen": "^7.0.0",
49
+ "core-js": "^3.21.0",
50
+ "fs-extra": "^10.0.0",
51
+ "listr": "^0.14.3",
52
+ "lodash": "^4.17.0",
53
+ "update-notifier": "^5.1.0",
54
+ "yargs": "^17.4.0"
55
55
  },
56
56
  "devDependencies": {
57
57
  "jest": "27.5.1"
58
58
  },
59
- "gitHead": "8cf4f784d15aed35e09a911a2fc9646a3fb9b06c"
59
+ "gitHead": "89c6eeff0863047a918468600104854fa073617a"
60
60
  }