PNpM CLI
Minor Changes
-
A new setting supported in the pnpm section of the
package.jsonfile:allowNonAppliedPatches. When it is set totrue, non-applied patches will not cause an error, just a warning will be printed. For example:{ "name": "foo", "version": "1.0.0", "pnpm": { "patchedDependencies": { "express@4.18.1": "patches/express@4.18.1.patch" }, "allowNonAppliedPatches": true } } -
Now it is possible to exclude packages from hoisting by prepending a
!to the pattern. This works with both thehoist-patternandpublic-hoist-patternsettings. For instance:public-hoist-pattern[]='*types*' public-hoist-pattern[]='!@types/react' hoist-pattern[]='*eslint*' hoist-pattern[]='!*eslint-plugin*'Ref #5272
Patch Changes
- When the same dependency with missing peers is used in multiple workspace projects, install the missing peers in each workspace project #4820.
pnpm patchshould work on files that don't have an end of line #5320.- Fix
pnpm patchusing a custom--edit-dir.
Our Gold Sponsors
<table> <tbody> <tr> <td align="center" valign="middle"> <a href="https://bit.dev/?utm_source=pnpm&utm_medium=release_notes" target="_blank"><img src="https://pnpm.io/img/users/bit.svg" width="80"></a> </td> <td align="center" valign="middle"> <a href="https://nhost.io/?utm_source=pnpm&utm_medium=release_notes" target="_blank"><img src="https://pnpm.io/img/users/nhost.svg" width="180"></a> </td> <td align="center" valign="middle"> <a href="https://novu.co/?utm_source=pnpm&utm_medium=release_notes" target="_blank"><img src="https://pnpm.io/img/users/novu.svg" width="180"></a> </td> </tr> </tbody> </table>
Our Silver Sponsors
<table> <tbody> <tr> <td align="center" valign="middle"> <a href="https://prisma.io/?utm_source=pnpm&utm_medium=readme" target="_blank"> <img src="https://pnpm.io/img/users/prisma.svg" width="180"> </a> </td> <td align="center" valign="middle"> <a href="https://leniolabs.com/?utm_source=pnpm&utm_medium=readme" target="_blank"> <img src="https://pnpm.io/img/users/leniolabs.jpg" width="80"> </a> </td> <td align="center" valign="middle"> <a href="https://vercel.com/?utm_source=pnpm&utm_medium=readme" target="_blank"> <img src="https://pnpm.io/img/users/vercel.svg" width="180"> </a> </td> </tr> <tr> <td align="center" valign="middle"> <a href="https://www.takeshape.io/?utm_source=pnpm&utm_medium=readme" target="_blank"> <img src="https://pnpm.io/img/users/takeshape.svg" width="280"> </a> </td> <td align="center" valign="middle"> <a href="https://doppler.com/?utm_source=pnpm&utm_medium=readme#gh-light-mode-only" target="_blank"> <img src="https://pnpm.io/img/users/doppler.svg" width="280"> </a> </td> </tr> </tbody> </table>
What's Changed
- fix(patch): allow to edit a package in any directory by @zkochan in https://github.com/pnpm/pnpm/pull/5331
- feat(matcher): ignore patterns by @LuciNyan in https://github.com/pnpm/pnpm/pull/5336
- fix(patch): ignore No newline at end of file by @await-ovo in https://github.com/pnpm/pnpm/pull/5321
- feat(patch): allow non-applied patches by @larrybahr-ocelot in https://github.com/pnpm/pnpm/pull/5354
- chore: update @pnpm/meta-updater by @ibezkrovnyi in https://github.com/pnpm/pnpm/pull/5360
- fix: auto-install-peers in a workspace by @zkochan in https://github.com/pnpm/pnpm/pull/5359
New Contributors
- @await-ovo made their first contribution in https://github.com/pnpm/pnpm/pull/5321
- @larrybahr-ocelot made their first contribution in https://github.com/pnpm/pnpm/pull/5354
Full Changelog: https://github.com/pnpm/pnpm/compare/v7.11.0...v7.12.0