Skip to content

fix: use --filter= syntax for cross-platform pnpm filter commands - #57

Merged
Brooooooklyn merged 1 commit into
mainfrom
04-01-fix_use_--filter_syntax_for_cross-platform_pnpm_filter_commands
Apr 1, 2026
Merged

Brooooooklyn merged 1 commit into
mainfrom
04-01-fix_use_--filter_syntax_for_cross-platform_pnpm_filter_commands

Conversation

@shulaoda

Copy link
Copy Markdown
Member

Description:

Single-quoted globs in pnpm filter (e.g. pnpm -F './packages/**') break on Windows because cmd and PowerShell do not interpret single quotes as string delimiters.

Two cross-platform alternatives:

  1. pnpm -F \"./packages/**\" — escaped double quotes work everywhere, but look awkward and require extra escaping inside package.json scripts.
  2. pnpm --filter=./packages/** — the = form passes the value directly to pnpm without shell expansion, so no quotes are needed at all.

Chose option 2 for simplicity and readability.

@shulaoda
shulaoda requested a review from Brooooooklyn March 31, 2026 16:55
@Brooooooklyn
Brooooooklyn merged commit 4dd28b2 into main Apr 1, 2026
6 checks passed
@Brooooooklyn
Brooooooklyn deleted the 04-01-fix_use_--filter_syntax_for_cross-platform_pnpm_filter_commands branch April 1, 2026 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants