ai-yuca 1.1.9 → 1.2.0
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/package.json +1 -1
- package/dist/src/deploy.js +1 -1
- package/dist/src/types/deploy.d.ts +3 -2
- package/package.json +1 -1
- package/src/deploy.ts +1 -1
- package/src/types/deploy.ts +3 -3
package/dist/package.json
CHANGED
package/dist/src/deploy.js
CHANGED
|
@@ -395,7 +395,7 @@ async function deployFiles(options) {
|
|
|
395
395
|
const versionInfo = {
|
|
396
396
|
cdnKey,
|
|
397
397
|
version: cdnKey,
|
|
398
|
-
baseUrl:
|
|
398
|
+
baseUrl: config.deploy.baseUrl,
|
|
399
399
|
branch: getBranchName(),
|
|
400
400
|
timestamp: Date.now(),
|
|
401
401
|
links: obj.links
|
|
@@ -17,7 +17,7 @@ export interface DeployCommandOptions {
|
|
|
17
17
|
}
|
|
18
18
|
export interface DeployConfig {
|
|
19
19
|
deploy: {
|
|
20
|
-
baseUrl: string
|
|
20
|
+
baseUrl: string[];
|
|
21
21
|
testHost?: string;
|
|
22
22
|
};
|
|
23
23
|
aws: {
|
|
@@ -37,7 +37,7 @@ export interface ProjectInfo {
|
|
|
37
37
|
export interface DeployVersionInfo {
|
|
38
38
|
cdnKey: string;
|
|
39
39
|
version: string;
|
|
40
|
-
baseUrl: string;
|
|
40
|
+
baseUrl: string[];
|
|
41
41
|
branch?: string;
|
|
42
42
|
timestamp: number;
|
|
43
43
|
links: string[];
|
|
@@ -65,6 +65,7 @@ export interface GetConfigFilesFunction {
|
|
|
65
65
|
data: {
|
|
66
66
|
projects: Array<any>;
|
|
67
67
|
lastVersion?: string;
|
|
68
|
+
cdnVersion?: string;
|
|
68
69
|
};
|
|
69
70
|
}>;
|
|
70
71
|
}
|
package/package.json
CHANGED
package/src/deploy.ts
CHANGED
|
@@ -428,7 +428,7 @@ export async function deployFiles(options: DeployCommandOptions): Promise<Deploy
|
|
|
428
428
|
const versionInfo: DeployVersionInfo = {
|
|
429
429
|
cdnKey,
|
|
430
430
|
version: cdnKey,
|
|
431
|
-
baseUrl:
|
|
431
|
+
baseUrl: config.deploy.baseUrl,
|
|
432
432
|
branch: getBranchName(),
|
|
433
433
|
timestamp: Date.now(),
|
|
434
434
|
links: obj.links
|
package/src/types/deploy.ts
CHANGED
|
@@ -20,7 +20,7 @@ export interface DeployCommandOptions {
|
|
|
20
20
|
|
|
21
21
|
export interface DeployConfig {
|
|
22
22
|
deploy: {
|
|
23
|
-
baseUrl: string
|
|
23
|
+
baseUrl: string[]; // 部署基础URL,支持字符串或数组
|
|
24
24
|
testHost?: string; // 测试环境主机
|
|
25
25
|
};
|
|
26
26
|
aws: {
|
|
@@ -42,7 +42,7 @@ export interface ProjectInfo {
|
|
|
42
42
|
export interface DeployVersionInfo {
|
|
43
43
|
cdnKey: string;
|
|
44
44
|
version: string;
|
|
45
|
-
baseUrl: string;
|
|
45
|
+
baseUrl: string[];
|
|
46
46
|
branch?: string;
|
|
47
47
|
timestamp: number;
|
|
48
48
|
links: string[];
|
|
@@ -70,5 +70,5 @@ export interface DeployResult {
|
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
export interface GetConfigFilesFunction {
|
|
73
|
-
(env: string, config: Record<string, any>, keyFile?: string): Promise<{ data: { projects: Array<any>, lastVersion?: string } }>;
|
|
73
|
+
(env: string, config: Record<string, any>, keyFile?: string): Promise<{ data: { projects: Array<any>, lastVersion?: string, cdnVersion?: string } }>;
|
|
74
74
|
}
|