patch-package icon indicating copy to clipboard operation
patch-package copied to clipboard

Should we throw warning instead of error while patched packages not exist

Open joe223 opened this issue 3 years ago • 3 comments

As a example:

Patch file found for package vite which is not present at node_modules/vite

If we want to build sub-packages independently in monorepo, but we already set root/package.json

"scripts": {
   "postinstall": "patch-package"
 }

that will interrupt the build process if submodule root/packages/module-a does not dependent vite

joe223 avatar Aug 21 '21 12:08 joe223

Any update on this? I think I'm facing the same problem with another module. I work with Lerna monorepo and this issue is just on Gitlab CI, locally it's working.

marcogigliarano avatar Oct 11 '21 18:10 marcogigliarano

+1, would be a nice addition. A cli flag like --skip-not-found / --skip-missing, enabling it would just print a warning instead of an exception. Without it, it would default to the current behaviour.

nickfla1-mxm avatar Nov 11 '21 15:11 nickfla1-mxm

+1

xziy avatar Aug 19 '22 20:08 xziy