mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-29 17:58:08 +08:00
fix(build-utils): ignore the effects of directories when exclude files (#17654)
This commit is contained in:
parent
606ff06322
commit
8d154dfad8
@ -31,7 +31,8 @@ export const getPackageDependencies = (
|
||||
|
||||
export const excludeFiles = (files: string[]) => {
|
||||
const excludes = ['node_modules', 'test', 'mock', 'gulpfile', 'dist']
|
||||
return files.filter(
|
||||
(path) => !excludes.some((exclude) => path.includes(exclude))
|
||||
)
|
||||
return files.filter((path) => {
|
||||
const position = path.startsWith(projRoot) ? projRoot.length : 0
|
||||
return !excludes.some((exclude) => path.includes(exclude, position))
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user