Repository navigation
fix(build:deps): use double quotes so the pnpm filter matches on Windows - #2502
Merged
Merged
Conversation
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
Signed-off-by: koeria <[email protected]>
2 of 3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On Windows,
pnpm devnever rebuilt the workspace dependency packages.build:depsused single quotes around the pnpm filter, and pnpm runs package scripts through cmd.exe on Windows where single quotes are literal characters, sopnpm --filter '@pi-desktop/desktop^...'matched 0 projects and exited 0 (silently leaving stalepackages/*output).Fix
Single-line change in
apps/desktop/package.json: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--filterscript in the repo using single quotes (root filters are unquoted).Fixes #2499