Skip to content

fix: fix the state.json creation path when execute pnpm patch in sub package #9733

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

xiaoliyooo
Copy link

When execute the pnpm patch command in a sub package, a .patch_patches folder is generated in the root node_modules to store the code that needs to be edited, and a .pnpm_patches folder is also generated under the sub package's node_modules to store the state.json file, which can't be patch-commitcorrectly.

The state.json file should be stored in the same .pnpm_patches folder as the edited code.

@xiaoliyooo xiaoliyooo requested a review from zkochan as a code owner July 9, 2025 12:17
Copy link

welcome bot commented Jul 9, 2025

💖 Thanks for opening this pull request! 💖
Please be patient and we will get back to you as soon as we can.

@xiaoliyooo xiaoliyooo force-pushed the fix/patch-state-patch branch from 7bd9e5f to c01a8c7 Compare July 9, 2025 13:42
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.

1 participant