Skip to content

fix(build:deps): use double quotes so the pnpm filter matches on Windows - #2502

Merged
vastsa merged 4 commits into
vastsa:mainfrom
koeria:fix/issue-2499
Nov 21, 2026
Merged

vastsa merged 4 commits into
vastsa:mainfrom
koeria:fix/issue-2499

Conversation

@koeria

@koeria koeria commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

Problem

On Windows, pnpm dev never rebuilt the workspace dependency packages. build:deps used single quotes around the pnpm filter, and pnpm runs package scripts through cmd.exe on Windows where single quotes are literal characters, so pnpm --filter '@pi-desktop/desktop^...' matched 0 projects and exited 0 (silently leaving stale packages/* output).

Fix

Single-line change in apps/desktop/package.json:

- "build:deps": "pnpm --filter '@pi-desktop/desktop^...' build"
+ "build:deps": "pnpm --filter \"@pi-desktop/desktop^...\" build"

Double quotes work on both POSIX shells and cmd.exe; dropping quotes entirely would break on Windows too because cmd treats ^ as an escape character. This was also the only --filter script in the repo using single quotes (root filters are unquoted).

Fixes #2499

koeria and others added 3 commits November 21, 2026 18:24
cmd.exe treats single quotes as literal characters, so
pnpm --filter '@pi-desktop/desktop^...' matched 0 projects on
Windows and build:deps silently rebuilt nothing. Double quotes
work in both POSIX shells and cmd (and keep ^ from being eaten
as an escape character).

Fixes vastsa#2499
@vastsa
vastsa merged commit 535f018 into vastsa:main Nov 21, 2026
5 checks passed
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.

[Bug] build:deps filter never matches on Windows: single quotes are literal in cmd.exe

2 participants