@kengic/uni 0.7.4 → 0.7.6
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 +1 -1
- package/script/cmd.mjs +3 -4
package/package.json
CHANGED
package/script/cmd.mjs
CHANGED
|
@@ -11,7 +11,7 @@ function log(message) {
|
|
|
11
11
|
console.log(`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/uni] COPY-DIST-TO-ANDROID | ${message}`);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
async function
|
|
14
|
+
async function cmd() {
|
|
15
15
|
try {
|
|
16
16
|
program
|
|
17
17
|
.command('copy-dist-to-android')
|
|
@@ -19,9 +19,8 @@ async function execute() {
|
|
|
19
19
|
.option('--appid <appid>', 'APPID', '')
|
|
20
20
|
.action(async (args) => {
|
|
21
21
|
try {
|
|
22
|
-
log(
|
|
22
|
+
log(`命令参数 | ${JSON.stringify(args)}`);
|
|
23
23
|
log(`当前目录 | ${process.cwd()}`);
|
|
24
|
-
log(`args | ${args}`);
|
|
25
24
|
|
|
26
25
|
// TODO LT
|
|
27
26
|
log('复制成功');
|
|
@@ -36,4 +35,4 @@ async function execute() {
|
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
|
|
39
|
-
|
|
38
|
+
cmd();
|