@zeppos/zeus-cli 1.5.18 → 1.5.19

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/modules/create.js CHANGED
@@ -143,6 +143,8 @@ var inquirerFunc = function (args, _a) {
143
143
  type: 'list',
144
144
  when: function (args) {
145
145
  var isWorkoutExtension = args.appType.toLowerCase() === AppType.WORKOUT_EXTENSION;
146
+ if (!isWorkoutExtension)
147
+ return isWorkoutExtension;
146
148
  var objMap = workoutExtTemplateChoices[args.OSVersion].find(function (val) {
147
149
  var name = val.name === 'Hello World' ? 'Hello_World' : val.name;
148
150
  return name === promptTemplate;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeppos/zeus-cli",
3
- "version": "1.5.18",
3
+ "version": "1.5.19",
4
4
  "description": "zeus mini-program tools",
5
5
  "main": "index.ts",
6
6
  "author": "zepp",
@@ -88,6 +88,10 @@ 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
+ if (!fs_extra_1["default"].existsSync((0, path_1.join)(dir, 'package.json'))) {
92
+ resolve(true);
93
+ return;
94
+ }
91
95
  (0, child_process_1.exec)("cd ".concat(dir, " && npm install"), function (error, stdout, stderr) {
92
96
  if (error) {
93
97
  console.error("npm install error: ".concat(error));