patch-package
patch-package copied to clipboard
Should we throw warning instead of error while patched packages not exist
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
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.
+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.
+1