@zeppos/zeus-cli 1.2.0 → 1.2.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeppos/zeus-cli",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "zeus mini-program tools",
5
5
  "main": "index.ts",
6
6
  "author": "zepp",
@@ -327,7 +327,7 @@ var runX = function (root, args, url, packages, logAfterFunc) { return __awaiter
327
327
  })
328
328
  .on('all', function (_type, path) {
329
329
  logger.info("".concat(path, " ").concat(chalk_1["default"].green(_type)));
330
- refreshSimulator();
330
+ path && refreshSimulator();
331
331
  })];
332
332
  });
333
333
  }); };
@@ -88,7 +88,7 @@ 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)('npm', ['install'], {
91
+ var execInstall = (0, child_process_1.spawn)(process.platform === 'win32' ? 'npm.cmd' : 'npm', ['install'], {
92
92
  stdio: 'pipe',
93
93
  cwd: dir
94
94
  });