@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
|
@@ -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;
|