mirror of
https://github.com/pnpm/pnpm.git
synced 2026-07-25 15:07:06 -04:00
* fix: warn when directory contains PATH delimiter character Add a warning when the current directory contains the PATH delimiter character (colon on macOS/Linux, semicolon on Windows). On macOS, folder names containing forward slashes (/) appear as colons (:) at the Unix layer. Since colons are PATH separators in POSIX systems, this breaks PATH injection for node_modules/.bin. close #10457 * test: add tests for PATH delimiter warning - Test warning is emitted when directory contains delimiter - Test no warning for normal directories
456 B
456 B
@pnpm/config, pnpm
| @pnpm/config | pnpm |
|---|---|
| patch | patch |
Add a warning when the current directory contains the PATH delimiter character. On macOS, folder names containing forward slashes (/) appear as colons (:) at the Unix layer. Since colons are PATH separators in POSIX systems, this breaks PATH injection for node_modules/.bin, causing binaries to not be found when running commands like pnpm exec.
Closes #10457.