@infinity-cli/ipublish 1.2.1 → 1.2.2
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/command/config.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ declare const TypeBox_PublishConfig: import("@sinclair/typebox").TObject<{
|
|
|
11
11
|
cmd: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
12
12
|
cwd: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
13
13
|
}>;
|
|
14
|
-
export
|
|
14
|
+
export type Type_PublishConfig = Static<typeof TypeBox_PublishConfig>;
|
|
15
15
|
export declare const runtimeConfig: RuntimeConfig<{
|
|
16
16
|
loginType?: "password" | "privateKey" | undefined;
|
|
17
17
|
password?: string | undefined;
|
|
@@ -20,7 +20,7 @@ export declare const runtimeConfig: RuntimeConfig<{
|
|
|
20
20
|
cwd?: string | undefined;
|
|
21
21
|
ip: string;
|
|
22
22
|
user: string;
|
|
23
|
-
from:
|
|
23
|
+
from: string[];
|
|
24
24
|
to: string;
|
|
25
25
|
}>;
|
|
26
26
|
export {};
|
package/dist/command/upload.js
CHANGED
|
@@ -102,7 +102,7 @@ const uploadRemoteWithConfig = (config) => __awaiter(void 0, void 0, void 0, fun
|
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
exports.uploadRemoteWithConfig = uploadRemoteWithConfig;
|
|
105
|
-
const uploadRemoteAction = (LABEL_ENV, { config: configName } = { config: undefined }, { args } = { args: undefined })
|
|
105
|
+
const uploadRemoteAction = (LABEL_ENV_1, ...args_1) => __awaiter(void 0, [LABEL_ENV_1, ...args_1], void 0, function* (LABEL_ENV, { config: configName } = { config: undefined }, { args } = { args: undefined }) {
|
|
106
106
|
const config = yield config_1.runtimeConfig.getConfig(args, configName, LABEL_ENV);
|
|
107
107
|
if (!config.password && !config.privateKey) {
|
|
108
108
|
console.error('password和privateKey至少设置一项');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"root":["../src/bin.ts","../src/util.ts","../src/command/config.ts","../src/command/upload.ts","../src/lib/index.ts"],"version":"5.6.2"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infinity-cli/ipublish",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"description": "上传服务器文件",
|
|
6
6
|
"main": "dist/lib/index.js",
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
"infinity-cli"
|
|
28
28
|
],
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@infinity-cli/shared": "^1.2.
|
|
31
|
-
"@sinclair/typebox": "^0.
|
|
30
|
+
"@infinity-cli/shared": "^1.2.2",
|
|
31
|
+
"@sinclair/typebox": "^0.33.12",
|
|
32
32
|
"archiver": "^5.3.0",
|
|
33
33
|
"commander": "^8.2.0",
|
|
34
34
|
"node-ssh": "^12.0.3",
|
|
35
35
|
"ora": "5",
|
|
36
36
|
"rimraf": "^3.0.2"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "f44cb88aa9af453d3d61cce95576ef5790648972"
|
|
39
39
|
}
|