mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-09 00:39:29 -05:00
workflow: fix checkLinks script
This commit is contained in:
@@ -42,10 +42,12 @@ function checkFiles (folder, recursive = false) {
|
||||
const fullPath = path.join(folder, file)
|
||||
if (file === 'ui.js') {
|
||||
checkLinks(fullPath)
|
||||
} else if (file === 'ui' && fs.statSync(fullPath).isDirectory()) {
|
||||
checkLinks(path.join(fullPath, 'index.js'))
|
||||
} else if (recursive) {
|
||||
checkFiles(fullPath)
|
||||
} else if (fs.statSync(fullPath).isDirectory()) {
|
||||
if (file === 'ui') {
|
||||
checkLinks(path.join(fullPath, 'index.js'))
|
||||
} else if (recursive) {
|
||||
checkFiles(fullPath)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user