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

Other Useful Business Software
The Most Powerful Software Platform for EHSQ and ESG Management Icon
The Most Powerful Software Platform for EHSQ and ESG Management

Addresses the needs of small businesses and large global organizations with thousands of users in multiple locations.

Choose from a complete set of software solutions across EHSQ that address all aspects of top performing Environmental, Health and Safety, and Quality management programs.
Learn More
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