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
AI-powered service management for IT and enterprise teams Icon
AI-powered service management for IT and enterprise teams

Enterprise-grade ITSM, for every business

Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity. Maximize operational efficiency with refreshingly simple, AI-powered Freshservice.
Try it 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

Linux, Android, Mac

Programming Language

TypeScript

Related Categories

TypeScript Software Development Software

Registered

2021-10-04