patch-package lets app authors instantly make and keep fixes to npm dependencies. It's a vital band-aid for those of us living on the bleeding edge. Patches created by patch-package are automatically and gracefully applied when you use npm(>=5) or yarn. No more waiting around for pull requests to be merged and published. No more forking repos just to fix that one tiny thing preventing your app from working. You can use --save-dev if you don't need to run npm in production, e.g. if you're making a web frontend. Note that if you want to patch un-hoisted packages you'll need to repeat the setup process for the child package. Also make sure you're in the child package directory when you run patch-package to generate the patch files. Create a hash of your patches before loading/saving your cache.

Features

  • patch-package checks whether you use npm or yarn based on which lockfile you have
  • Open a web browser with a draft issue based on your diff
  • Considers paths matching the regexp when creating patch files
  • Ignores paths matching the regexp when creating patch files
  • It works with scoped packages too
  • Make more changes, run patch-package, commit the changes to the patch file

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow patch-package

patch-package Web Site

You Might Also Like
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of patch-package!

Additional Project Details

Operating Systems

Android, Linux, Mac

Programming Language

TypeScript

Related Categories

TypeScript Software Development Software

Registered

2021-10-04