mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-11 02:29:48 -04:00
6
.changeset/lucky-parents-post.md
Normal file
6
.changeset/lucky-parents-post.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"@pnpm/fs.find-packages": patch
|
||||
"pnpm": patch
|
||||
---
|
||||
|
||||
Do not hang indefinitely, when there is a glob that starts with `!/` in `pnpm-workspace.yaml`. This fixes a regression introduced by [#9169](https://github.com/pnpm/pnpm/pull/9169).
|
||||
@@ -69,7 +69,11 @@ export async function findPackages (root: string, opts?: Options): Promise<Proje
|
||||
|
||||
function normalizePatterns (patterns: readonly string[]): string[] {
|
||||
const normalizedPatterns: string[] = []
|
||||
for (const pattern of patterns) {
|
||||
for (let pattern of patterns) {
|
||||
// For some reason tinyglobby hangs indefinitely with !/
|
||||
if (pattern.startsWith('!/')) {
|
||||
pattern = `!${pattern.substring(2)}`
|
||||
}
|
||||
// We should add separate pattern for each extension
|
||||
// for some reason, fast-glob is buggy with /package.{json,yaml,json5} pattern
|
||||
normalizedPatterns.push(
|
||||
|
||||
Reference in New Issue
Block a user