patch-package
patch-package copied to clipboard
Fix broken node modules instantly 🏃🏽♀️💨
### version 6.5.0 ### Environment windows 7 node v12.16.3 npm v6.14.4 yarn v1.12.1 ### Current Behavior add code on the first or last line, when reinstall, the code is repeated...
I have a local setup, where my **global** git-settings contains the following setting: ```ini [commit] gpgsign = true ``` This creates a problem while creating a patch-file, which fails because...
Show of hands -- how many people have run patch-package on itself??? ```diff cat >patches/patch-package+6.4.7.patch diff --git a/node_modules/patch-package/dist/makePatch.js b/node_modules/patch-package/dist/makePatch.js index 985589e..326fae2 100644 --- a/node_modules/patch-package/dist/makePatch.js +++ b/node_modules/patch-package/dist/makePatch.js @@ -87,7 +87,7 @@...
Not sure if bug or (not yet implemented) feature. NPM supports changing and even replacing (transitive) dependencies via the `"overrides"` node in the `package.json`, this is a NPM feature since...
npx patch-package echarts ==》 patch-package was unable to read the patch-file made by git. This should not happen. A diagnostic file was written to ./patch-package-error.json.gz
Please attach the diagnostic file by dragging it into here 🙏 [patch-package-error.json.gz](https://github.com/ds300/patch-package/files/10716537/patch-package-error.json.gz)
applyPatches is hard-coded to use `/node_modules/`. It therefore ignores the yarn config of `install.modules-folder` which might place `node_modules` elsewhere.
### Problem When a patch failed to apply to the source code this could be left partially changed. ### Description If a patch modify more than a file it could...
All package managers support installing dependencies via npm alias, which is handy when you are working with different versions of one library. example: ``` ... "rpr3.0.1": "npm:@react-pdf/[email protected]", "rpr3.0.2": "npm:@react-pdf/renderer@^3.0.2", ......
Hi, Im getting a parse error when trying to use patch-package: > **ERROR** Failed to apply patch for package react-native This happened because the patch file patches/react-native+0.59.10.patch could not be...