Skip to content

Rewrite pnpm-workspace.yaml to remove excluded patchedDependencies#179

Closed
ChromeQ wants to merge 2 commits into0x80:mainfrom
ChromeQ:main
Closed

Rewrite pnpm-workspace.yaml to remove excluded patchedDependencies#179
ChromeQ wants to merge 2 commits into0x80:mainfrom
ChromeQ:main

Conversation

@ChromeQ
Copy link
Copy Markdown

@ChromeQ ChromeQ commented Apr 29, 2026

Fixes #178

I divided this into two commits.

  1. This is the simplest fix where we read the workspace file with readTypedYamlSync, edit the patchedDependencies and then write it to isolate dir with writeTypedYamlSync. The "downside" to this is losing comments, spacing etc even if there were no excluded patches.
  2. Changed return type of copy-patches.ts to track copiedPatches and excludedPatches so that the existing "simple" copy of pnpm-workspace.yaml can take place when there are no excluded patches to remove.

Please feel free to revert the 2nd commit if you prefer the simplicity and single path of commit 1.

ChromeQ and others added 2 commits April 30, 2026 00:08
Co-authored-by: Copilot <copilot@github.com>
Copy workspace file simply when no excluded patches

Co-authored-by: Copilot <copilot@github.com>
@0x80
Copy link
Copy Markdown
Owner

0x80 commented Apr 30, 2026

Closed in favor of #180

@0x80 0x80 closed this Apr 30, 2026
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.

pnpm patchedDependencies bug with excluded patch files

2 participants