Skip to content
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

feat: support --patches-dir on patch-commit command #6215

Merged
merged 4 commits into from Mar 16, 2023

Conversation

taozhou-glean
Copy link
Contributor

This is for #6202

@welcome
Copy link

welcome bot commented Mar 14, 2023

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

@taozhou-glean taozhou-glean marked this pull request as ready for review March 14, 2023 17:22
@taozhou-glean taozhou-glean changed the title feat: support --patches-dir to patch-commit command feat: support --patches-dir on patch-commit command Mar 14, 2023
const userDir = params[0]
const lockfileDir = opts.lockfileDir ?? opts.dir ?? process.cwd()
const patchesDir = path.join(lockfileDir, 'patches')
const patchesDirName = opts.patchesDir ?? 'patches'
const patchesDir = path.join(lockfileDir, patchesDirName)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i thought about supporting arbitrary path for patches-dir, but realize it's likely not a common case and will require more changes, so decide to always assume path under lockfileDir.

@zkochan zkochan enabled auto-merge (squash) March 16, 2023 00:19
@zkochan zkochan added this to the v7.30 milestone Mar 16, 2023
@zkochan zkochan merged commit 40845b9 into pnpm:main Mar 16, 2023
10 checks passed
@welcome
Copy link

welcome bot commented Mar 16, 2023

Congrats on merging your first pull request! 🎉🎉🎉

@taozhou-glean taozhou-glean deleted the tao-patches-dir branch July 26, 2023 05:51
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.

None yet

2 participants