1.5 KiB
@pnpm/patching.config
1.0.0
Major Changes
-
cb006df: Add ability to apply patch to all versions: If the key ofpnpm.patchedDependenciesis a package name without a version (e.g.pkg), pnpm will attempt to apply the patch to all versions of the package, failure will be skipped. If it is a package name and an exact version (e.g.pkg@x.y.z), pnpm will attempt to apply the patch to that exact version only, failure will cause pnpm to fail.If there's only one version of
pkginstalled,pnpm patch pkgand subsequentpnpm patch-commit $edit_dirwill create an entry namedpkginpnpm.patchedDependencies. And pnpm will attempt to apply this patch to other versions ofpkgin the future.If there's multiple versions of
pkginstalled,pnpm patch pkgwill ask which version to edit and whether to attempt to apply the patch to all. If the user chooses to apply the patch to all,pnpm patch-commit $edit_dirwould create apkgentry inpnpm.patchedDependencies. If the user chooses not to apply the patch to all,pnpm patch-commit $edit_dirwould create apkg@x.y.zentry inpnpm.patchedDependencieswithx.y.zbeing the version the user chose to edit.If the user runs
pnpm patch pkg@x.y.zwithx.y.zbeing the exact version ofpkgthat has been installed,pnpm patch-commit $edit_dirwill always create apkg@x.y.zentry inpnpm.patchedDependencies.
Patch Changes
- Updated dependencies [
cb006df]- @pnpm/patching.types@1.0.0