From c85aaf87c97bc60367368f4a816bf2e66b7a4b05 Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Sat, 5 Apr 2025 00:06:40 +0200 Subject: [PATCH] fix: tinyglobby regression (#9380) ref #9169 --- .changeset/lucky-parents-post.md | 6 ++++++ fs/find-packages/src/index.ts | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 .changeset/lucky-parents-post.md diff --git a/.changeset/lucky-parents-post.md b/.changeset/lucky-parents-post.md new file mode 100644 index 0000000000..e726739c4d --- /dev/null +++ b/.changeset/lucky-parents-post.md @@ -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). diff --git a/fs/find-packages/src/index.ts b/fs/find-packages/src/index.ts index 07329474e7..c315f872ff 100644 --- a/fs/find-packages/src/index.ts +++ b/fs/find-packages/src/index.ts @@ -69,7 +69,11 @@ export async function findPackages (root: string, opts?: Options): Promise