@zeppos/zeus-cli 1.5.5 → 1.5.7
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.
|
|
3
|
+
"version": "1.5.7",
|
|
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.
|
|
24
|
+
"@zeppos/zpm": "^3.0.17",
|
|
25
25
|
"axios": "^0.27.2",
|
|
26
26
|
"chalk": "^4.1.2",
|
|
27
27
|
"chokidar": "^3.5.3",
|
|
@@ -99,7 +99,9 @@ var createLocalApp = function (args) { return __awaiter(void 0, void 0, void 0,
|
|
|
99
99
|
needDelShapeConfig.forEach(function (shape) {
|
|
100
100
|
fs_extra_1["default"].remove((0, path_1.resolve)(workDir, "./assets/gt.".concat(shape)));
|
|
101
101
|
fs_extra_1["default"].remove((0, path_1.resolve)(workDir, "./page/index.".concat(shape, ".layout.js")));
|
|
102
|
-
var
|
|
102
|
+
var targets = lodash_1["default"].get(appJson, 'targets');
|
|
103
|
+
var firstTarget = Object.keys(targets)[0] || 'default';
|
|
104
|
+
var platformsPathStr = "targets.".concat(firstTarget, ".platforms");
|
|
103
105
|
var platforms = lodash_1["default"].get(appJson, platformsPathStr);
|
|
104
106
|
if (!Array.isArray(platforms))
|
|
105
107
|
return;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"dev": "nodemon -e ts,tsx --exec \"rm -rf dist && tsc && ts-node build.ts\" --ignore types/ --ignore dist/"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@zeppos/zpm": "^3.0.
|
|
16
|
+
"@zeppos/zpm": "^3.0.17",
|
|
17
17
|
"axios": "^0.27.2",
|
|
18
18
|
"chalk": "^4.1.2",
|
|
19
19
|
"chokidar": "^3.5.3",
|