@tywalk/pcf-helper-run 1.1.20 → 1.1.21
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/dist/index.js +41 -11
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,14 +1,44 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
6
36
|
var _a, _b, _c, _d;
|
|
7
37
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
38
|
+
const upgradeTask = __importStar(require("@tywalk/pcf-helper/dist/tasks/upgrade-pcf"));
|
|
39
|
+
const buildTask = __importStar(require("@tywalk/pcf-helper/dist/tasks/build-pcf"));
|
|
40
|
+
const importTask = __importStar(require("@tywalk/pcf-helper/dist/tasks/import-pcf"));
|
|
41
|
+
const initTask = __importStar(require("@tywalk/pcf-helper/dist/tasks/init-pcf"));
|
|
12
42
|
const color_logger_1 = require("@tywalk/color-logger");
|
|
13
43
|
const package_json_1 = require("./package.json");
|
|
14
44
|
const performanceUtil_1 = require("./util/performanceUtil");
|
|
@@ -49,22 +79,22 @@ if (envIndex > 0) {
|
|
|
49
79
|
}
|
|
50
80
|
function executeTasks() {
|
|
51
81
|
if (commandArgument === 'upgrade' || runAll) {
|
|
52
|
-
const upgradeResult =
|
|
82
|
+
const upgradeResult = upgradeTask.run(path);
|
|
53
83
|
if (upgradeResult === 1)
|
|
54
84
|
return 1;
|
|
55
85
|
}
|
|
56
86
|
if (commandArgument === 'build' || runAll) {
|
|
57
|
-
const buildResult =
|
|
87
|
+
const buildResult = buildTask.run(path);
|
|
58
88
|
if (buildResult === 1)
|
|
59
89
|
return 1;
|
|
60
90
|
}
|
|
61
91
|
if (commandArgument === 'import' || runAll) {
|
|
62
|
-
const importResult =
|
|
92
|
+
const importResult = importTask.run(path, env);
|
|
63
93
|
if (importResult === 1)
|
|
64
94
|
return 1;
|
|
65
95
|
}
|
|
66
96
|
if (commandArgument === 'init') {
|
|
67
|
-
const importResult =
|
|
97
|
+
const importResult = initTask.run(path, env);
|
|
68
98
|
if (importResult === 1)
|
|
69
99
|
return 1;
|
|
70
100
|
}
|
package/dist/package.json
CHANGED