Questions tagged [patch-package]

Lets app authors instantly make and keep fixes to npm or yarn dependencies.

Module used with both npm and yarn to apply changes to loaded modules, as opposed to having to fork the repository and use the fork.

24 questions
0
votes
0 answers

Patch-packages in sub packages didn`t work well when I use lerna to install all packages

I have one project which has one packages folder and it contains three subfolders. The three subfolders have their own package.json file. One of them has patch-package npm package and "postinstall" script. When I input npm install command at the…
tcguoxing
  • 11
  • 2
0
votes
0 answers

How to patch-package --include multiple files of the same package

Is it possible to patch-package --include multiple files? I have two files under the same package but they're in different paths. What would be the best way to include only the changes from these 2 files? yarn patch-package --include…
tiredqa_18
  • 162
  • 2
  • 9
0
votes
0 answers

Apply post-install patch-package in react-native app final builds

I have a react-native projet, which we had to do some modifications in a node_module package, my modifications works fine when running my app with npx react-native run-android or expo app, but when building the binaries for android with gradle (…
notmat
  • 47
  • 6
0
votes
0 answers

Patch imagemin library with patch-package

I want to apply a patch for the imagemin (https://www.npmjs.com/package/imagemin) library using patch-package (https://www.npmjs.com/package/patch-package). The patch includes also patches in some sub-libraries gifsicle, jpegtran-bin and…
markus
  • 6,258
  • 13
  • 41
  • 68
0
votes
1 answer

npx patch-package generates a huge patch with 'Automatically generated file. DO NOT MODIFY' section

I am trying to patch react-native-sqlite-2 with changing only 1 line on build.gradle but result of npx patch react-native-sqlite-2 is a huge file with Automatically generated content like this: diff --git…
Kirill Novikov
  • 2,576
  • 4
  • 20
  • 33
0
votes
1 answer

No patch files found when yarn install

I have to clone a new react native project today, but when I yarn install it always returns a "no patch files found" error. Does anyone have any idea to fix this problem? no_patch_files_found_img
Hindie
  • 1
  • 1
0
votes
0 answers

Ngx-charts: Line breaks after null value

Line chart breaks after null value as the title says. It plots line until point with value: null comes, after that only points are plotted but line isn't. I can fix this by manually changing null into 0 or NaN and it will be plotted as 0 or…
0
votes
2 answers

Azure App Service node deployment with patch-package module

I am trying to run patch-package during a Node app deployment on Azure App Services (deployed with continuous integration from BitBucket). The patch-package script works fine locally (on Mac), but fails on Azure (Windows). The patch-package module…
Joel
  • 15,654
  • 5
  • 37
  • 60
0
votes
1 answer

Webpack unable to compile js in already working node package

I'm trying to make some style changes to a node package I have installed using patch-package, and in order to do so I have to use webpack to compile the code in the src/ directory to get new code in dist/. When I run npx webpack I get the following…
1
2