Skip to content

Commit 5688f0a

Browse files
authored
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
1 parent 19e2b29 commit 5688f0a

File tree

1 file changed

+2
-0
lines changed
  • packages/@tailwindcss-upgrade/src

1 file changed

+2
-0
lines changed

packages/@tailwindcss-upgrade/src/index.ts

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ async function run() {
7171
files = await globby(['**/*.css'], {
7272
absolute: true,
7373
gitignore: true,
74+
// gitignore: true will first search for all .gitignore including node_modules folders, this makes the initial search much faster
75+
ignore: ['**/node_modules/**'],
7476
})
7577
}
7678

0 commit comments

Comments
 (0)