@zeppos/zeus-cli 1.5.16 → 1.5.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeppos/zeus-cli",
3
- "version": "1.5.16",
3
+ "version": "1.5.18",
4
4
  "description": "zeus mini-program tools",
5
5
  "main": "index.ts",
6
6
  "author": "zepp",
@@ -21,7 +21,7 @@
21
21
  "qrcode-terminal": "^0.12.0",
22
22
  "vorpal": "^1.12.0",
23
23
  "yargs": "^17.5.1",
24
- "@zeppos/zpm": "^3.0.25",
24
+ "@zeppos/zpm": "^3.0.28",
25
25
  "axios": "^0.27.2",
26
26
  "chalk": "^4.1.2",
27
27
  "chokidar": "^3.5.3",
@@ -57,7 +57,8 @@
57
57
  "@types/stoppable": "^1.1.1",
58
58
  "@types/update-notifier": "5.0.0",
59
59
  "@types/yargs-parser": "^21.0.0",
60
- "@types/yeoman-environment": "^2.10.7"
60
+ "@types/yeoman-environment": "^2.10.7",
61
+ "rimraf": "^3.0.2"
61
62
  },
62
63
  "_moduleAliases": {
63
64
  "zeppos-app-utils": "private-modules/zeppos-app-utils"
@@ -88,13 +88,13 @@ var AppType = index_1.config.AppType, AppSourceType = index_1.config.AppSourceTy
88
88
  var child_process_1 = require("child_process");
89
89
  var projectPreInstall = function (dir) {
90
90
  return new Promise(function (resolve) {
91
- var execInstall = (0, child_process_1.spawn)(process.platform === 'win32' ? 'npm.cmd' : 'npm', ['install'], {
92
- stdio: 'pipe',
93
- cwd: dir
94
- });
95
- execInstall.stdout.pipe(process.stdout);
96
- execInstall.on('close', function (code) {
97
- resolve(code);
91
+ (0, child_process_1.exec)("cd ".concat(dir, " && npm install"), function (error, stdout, stderr) {
92
+ if (error) {
93
+ console.error("npm install error: ".concat(error));
94
+ process.exit(1);
95
+ }
96
+ console.log(stderr);
97
+ resolve(stdout);
98
98
  });
99
99
  });
100
100
  };
@@ -10,10 +10,10 @@
10
10
  "build": "rm -rf dist && tsc && pnpm run add",
11
11
  "add": "ts-node build.ts && pnpm -F @zeppos/zeus-cli add zeppos-app-utils && pnpm -F zeppos-dev-tools add zeppos-app-utils",
12
12
  "clean": "rm -rf node_modules && rm -rf dist",
13
- "dev": "nodemon -e ts,tsx --exec \"rm -rf dist && tsc && ts-node build.ts\" --ignore types/ --ignore dist/"
13
+ "dev": "nodemon -e ts,tsx --exec \"rimraf dist && tsc && ts-node build.ts\" --ignore types/ --ignore dist/"
14
14
  },
15
15
  "dependencies": {
16
- "@zeppos/zpm": "^3.0.25",
16
+ "@zeppos/zpm": "^3.0.28",
17
17
  "axios": "^0.27.2",
18
18
  "chalk": "^4.1.2",
19
19
  "chokidar": "^3.5.3",
@@ -49,6 +49,7 @@
49
49
  "@types/stoppable": "^1.1.1",
50
50
  "@types/update-notifier": "5.0.0",
51
51
  "@types/yargs-parser": "^21.0.0",
52
- "@types/yeoman-environment": "^2.10.7"
52
+ "@types/yeoman-environment": "^2.10.7",
53
+ "rimraf": "^3.0.2"
53
54
  }
54
55
  }