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
Deliver secure remote access with OpenVPN. Icon
Deliver secure remote access with OpenVPN.

Trusted by nearly 20,000 customers worldwide, and all major cloud providers.

OpenVPN's products provide scalable, secure remote access — giving complete freedom to your employees to work outside the office while securely accessing SaaS, the internet, and company resources.
Get started — no credit card required.
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