Add ignore pattern for node_modules in globby search in upgrade cli (#17969)
When passing `gitignore: true` to globby it will start a search for all .gitignore files, this initial search includes node_modules making it hang forever for large monorepos with many files inside node_modules
This commit is contained in:
parent
19e2b29c68
commit
5688f0a7ae
1 changed files with 2 additions and 0 deletions
|
|
@ -71,6 +71,8 @@ async function run() {
|
|||
files = await globby(['**/*.css'], {
|
||||
absolute: true,
|
||||
gitignore: true,
|
||||
// gitignore: true will first search for all .gitignore including node_modules folders, this makes the initial search much faster
|
||||
ignore: ['**/node_modules/**'],
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue