Skip to content

Commit cf206f5

Browse files
authored
ci(automate): fia automate dependencies error (#2428)
1 parent 31f10a7 commit cf206f5

File tree

11 files changed

+22
-16
lines changed

11 files changed

+22
-16
lines changed

internals/automate/src/add-dependencies.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ async function writeJson(jsonPath, dependencies) {
2727
toDelDeps.forEach((dep) => {
2828
delete json.dependencies[dep]
2929
})
30-
writeFile(jsonPath, JSON.stringify(json, null, 2))
30+
writeFile(jsonPath, JSON.stringify(json, null, 2) + '\n')
3131
}
3232

3333
// 解析文件内容中的opentiny依赖
@@ -55,7 +55,7 @@ async function addComponentDepencies(component, dir) {
5555
const allFiles = await fg(['**/*.ts', '**/*.vue'], {
5656
dot: true,
5757
cwd: componentPath,
58-
ignore: ['**/node_modules', '__test__']
58+
ignore: ['**/node_modules', '__test__', '__tests__']
5959
})
6060
for (let i = 0; i < allFiles.length; i++) {
6161
const file = allFiles[i]
@@ -73,6 +73,6 @@ scanDir(root, 'dir').then((dirs) => {
7373
dirs.forEach((dir) => addComponentDepencies(dir, root))
7474
})
7575

76-
scanDir(path.join(root, 'chart'), 'dir').then((dirs) => {
77-
dirs.forEach((dir) => addComponentDepencies(dir, path.join(root, 'chart')))
76+
scanDir(path.join(root, 'huicharts'), 'dir').then((dirs) => {
77+
dirs.forEach((dir) => addComponentDepencies(dir, path.join(root, 'huicharts')))
7878
})

packages/vue/src/base-select/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"@opentiny/vue-select-dropdown": "workspace:~",
2727
"@opentiny/vue-tag": "workspace:~",
2828
"@opentiny/vue-theme": "workspace:~",
29-
"@opentiny/vue-tooltip": "workspace:~"
29+
"@opentiny/vue-tooltip": "workspace:~",
30+
"@opentiny/vue-tree": "workspace:~"
3031
},
3132
"devDependencies": {
3233
"@opentiny-internal/vue-test-utils": "workspace:*",

packages/vue/src/config-provider/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
},
1616
"dependencies": {
1717
"@opentiny/vue-common": "workspace:~",
18-
"@opentiny/vue-theme": "workspace:~",
19-
"@opentiny/vue-config-provider": "workspace:~"
18+
"@opentiny/vue-theme": "workspace:~"
2019
},
2120
"license": "MIT"
2221
}

packages/vue/src/dialog-select/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
"@opentiny/vue-selected-box": "workspace:~",
2222
"@opentiny/vue-input": "workspace:~",
2323
"@opentiny/vue-tree": "workspace:~",
24-
"@opentiny/vue-theme": "workspace:~"
24+
"@opentiny/vue-theme": "workspace:~",
25+
"@opentiny/vue-icon": "workspace:~"
2526
},
2627
"license": "MIT"
2728
}

packages/vue/src/image/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"@opentiny/vue-common": "workspace:~",
1919
"@opentiny/vue-renderless": "workspace:~",
2020
"@opentiny/vue-image-viewer": "workspace:~",
21-
"@opentiny/vue-theme": "workspace:~"
21+
"@opentiny/vue-theme": "workspace:~",
22+
"@opentiny/vue-icon": "workspace:~"
2223
},
2324
"license": "MIT"
2425
}

packages/vue/src/load-list/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"sideEffects": false,
88
"dependencies": {
99
"@opentiny/vue-common": "workspace:~",
10-
"@opentiny/vue-renderless": "workspace:~"
10+
"@opentiny/vue-renderless": "workspace:~",
11+
"@opentiny/vue-locale": "workspace:~"
1112
},
1213
"license": "MIT",
1314
"devDependencies": {

packages/vue/src/loading/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"@opentiny/vue-common": "workspace:~",
1919
"@opentiny/vue-renderless": "workspace:~",
2020
"@opentiny/vue-theme": "workspace:~",
21-
"@opentiny/vue-theme-mobile": "workspace:~"
21+
"@opentiny/vue-theme-mobile": "workspace:~",
22+
"@opentiny/vue-icon": "workspace:~"
2223
},
2324
"license": "MIT"
2425
}

packages/vue/src/sticky/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
"dependencies": {
99
"@opentiny/vue-common": "workspace:~",
1010
"@opentiny/vue-renderless": "workspace:~",
11-
"@opentiny/vue-theme": "workspace:~",
12-
"@opentiny/vue-theme-mobile": "workspace:~"
11+
"@opentiny/vue-theme": "workspace:~"
1312
},
1413
"license": "MIT",
1514
"devDependencies": {

packages/vue/src/switch/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"@opentiny/vue-renderless": "workspace:~",
1919
"@opentiny/vue-common": "workspace:~",
2020
"@opentiny/vue-theme-mobile": "workspace:~",
21-
"@opentiny/vue-theme": "workspace:~"
21+
"@opentiny/vue-theme": "workspace:~",
22+
"@opentiny/vue-icon": "workspace:~"
2223
},
2324
"license": "MIT"
2425
}

packages/vue/src/time-range/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"@opentiny/vue-renderless": "workspace:~",
1919
"@opentiny/vue-common": "workspace:~",
2020
"@opentiny/vue-time-spinner": "workspace:~",
21-
"@opentiny/vue-theme": "workspace:~"
21+
"@opentiny/vue-theme": "workspace:~",
22+
"@opentiny/vue-button": "workspace:~"
2223
},
2324
"license": "MIT"
2425
}

packages/vue/src/upload/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
"@opentiny/vue-common": "workspace:~",
2020
"@opentiny/vue-upload-dragger": "workspace:~",
2121
"@opentiny/vue-modal": "workspace:~",
22-
"@opentiny/vue-tooltip": "workspace:~"
22+
"@opentiny/vue-tooltip": "workspace:~",
23+
"@opentiny/vue-icon": "workspace:~"
2324
},
2425
"license": "MIT"
2526
}

0 commit comments

Comments
 (0)