Files
pnpm/pnpm11/workspace/projects-reader/test
zhsamaandZoltan Kochan 965a600785 fix(workspace): normalize package directory patterns (#14582)
Workspace discovery passed directory patterns to wax without the POSIX path
normalization that pnpm11 receives from tinyglobby. This could omit projects
from installs and recursive commands, or include projects a negation excluded.

Add a POSIX normalization entry point to pnpm-fs, sharing the existing dot and
parent-component reduction with native-path normalization. POSIX separators
are interpreted consistently on every platform, preserving glob backslashes.
Normalize each configured pattern before selecting the existing literal,
one-level wildcard, or generic glob discovery path. Preserve the original
pattern in invalid-glob diagnostics.

The TypeScript implementation already normalizes these paths through
tinyglobby. Add matching TypeScript regression coverage alongside Rust
filesystem/discovery tests and a CLI install/list/recursive-script test.

Fixes pnpm/pnpm#14571.

---------

Co-authored-by: Zoltan Kochan <z@kochan.io>
2026-09-06 20:32:26 +02:00
..