@zeppos/zeus-cli 1.3.0-beta.10 → 1.3.0-beta.11

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.3.0-beta.10",
3
+ "version": "1.3.0-beta.11",
4
4
  "description": "zeus mini-program tools",
5
5
  "main": "index.ts",
6
6
  "author": "zepp",
@@ -145,7 +145,7 @@ var buildSupportV3Config = function (workspace, mode, buildConfigOption) {
145
145
  else if (sources.length) {
146
146
  index_1.logger.info("Start building package, device sources: ".concat(sources.join(', '), "."));
147
147
  }
148
- if (!(mode === BuildMode.DEV)) return [3, 3];
148
+ if (!(mode === BuildMode.DEV && (0, lodash_1.get)(buildConfigOption, '_[0]') !== 'install')) return [3, 3];
149
149
  return [4, (0, zpm_1.startWithoutDist)(buildOptions)];
150
150
  case 2: return [2, _h.sent()];
151
151
  case 3: return [4, (0, zpm_1.start)(buildOptions)];
@@ -307,7 +307,7 @@ var previewBuild = function (root, args, workspace, appType, curCommand) { retur
307
307
  case 8:
308
308
  if (!(curCommand === 'install')) return [3, 10];
309
309
  _a = (0, index_1.getDeviceInfoFromAppJson)(root), deviceSource = _a.deviceSource, appId = _a.appId, appName = _a.appName, appType_1 = _a.appType, deviceSourceArr = _a.deviceSourceArr, targetDeviceInternalName = _a.targetDeviceInternalName;
310
- return [4, index_1.api.downloadPackage(code, deviceSource, appType_1)];
310
+ return [4, index_1.api.downloadPackage(code, (0, lodash_1.get)(args, "sources[0]", deviceSource), appType_1)];
311
311
  case 9:
312
312
  packageInfo = _b.sent();
313
313
  url = packageInfo;
@@ -325,7 +325,7 @@ var previewBuild = function (root, args, workspace, appType, curCommand) { retur
325
325
  name: appName,
326
326
  "debugger": true,
327
327
  updatedTime: Math.round(new Date().getTime() / 1000),
328
- devices: deviceSourceArr,
328
+ devices: (0, lodash_1.get)(args, "sources", deviceSourceArr),
329
329
  target: targetDeviceInternalName
330
330
  });
331
331
  _b.label = 10;
@@ -12,7 +12,7 @@
12
12
  "clean": "rm -rf node_modules && rm -rf dist"
13
13
  },
14
14
  "dependencies": {
15
- "@zeppos/zpm": "^2.9.20-beta",
15
+ "@zeppos/zpm": "^2.10.1-beta",
16
16
  "axios": "^0.27.2",
17
17
  "chalk": "^4.1.2",
18
18
  "chokidar": "^3.5.3",