{"repo":"ds300/patch-package","free":true,"listed":false,"github":"https://github.com/ds300/patch-package","clone":"git clone https://github.com/ds300/patch-package.git","description":"Fix broken node modules instantly 🏃🏽‍♀️💨","language":"TypeScript","stars":11220,"topics":["javascript","javascript-tools","nodejs","node","node-js","node-modules","patch","patcher","diff","dependencies"],"license":"MIT","category":"dev-tools","readme_excerpt":"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. Set-up In package.json Then npm npm i patch-package You can use --save-dev if you don't need to run npm in production, e.g. if you're making a web frontend. yarn v1 yarn add patch-package postinstall-postinstall You can use --dev if you don't need to run yarn in production, e.g. if you're making a web frontend. To understand why yarn needs the postinstall-postinstall package see: Why use postinstall-postinstall yarn workspaces Same as for yarn ☝️ 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. yarn v2+ yarn 2+ have native support for patching dependencies via yarn patch . You do not need to use patch-package on these projects. pnpm pnpm has native support for patching dependencies via pnpm patch . You do not need to use patch-package on these projects. Heroku For patch-package to work on Heroku applications, you must specify NPM CONFIG PRODUCTION=false or YARN PRODUCTION=false . See this issue for m","default_branch":null,"files":null,"tree":[],"storefront":"/r/ds300","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ds300/patch-package/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}