0

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 optipng-bin. When I run yarn install, the installation of the gifsicle library still fails, as the installation compiles some C code (./configure, make). The problem seems to be that the patch is installed "postinstall", so at the time the gifsicle library is compiled, the patch is not applied. Does anyone know how to patch libraries which compile c code in submodules during install?

markus
  • 6,258
  • 13
  • 41
  • 68

0 Answers0