Add --ignore-missing flag to continue without error on missing packages#460
Add --ignore-missing flag to continue without error on missing packages#460andyjy wants to merge 4 commits intods300:masterfrom
Conversation
|
@ds300 what do you think about this one? Would be very useful :) |
|
@ds300 I saw you approved a CI run that failed all jobs during setup - looks to have been unrelated to my changes; I've just updated against latest master branch which seems should fix the CI workflows (?🤞) Glad to update this PR with changes if you'd like to accept it conditional on feedback. Thanks! |
|
Update 2023-07-03: PR now updated to support setting env var Original comment: I realise this feature as-implemented is "dangerous" - within a monorepo, a future update to the package-lock file may relocate a package out from the root Currently I suspect a workable approach is to update the support for |
|
guys, you can do it according to the following in packages.json. "installConfig": { |
thanks, it looks like that's a feature of yarn only - not npm |
PR now updated to support setting the env var I left the CLI option I've published this fork under patch-package-ignore-missing - version |
|
Did this ever get merged? |
Ignores patches for packages that are not present in node_modules.
This is useful when working with monorepos and wanting to install sub-packages
separately from the root package, with pruned dependencies.
Closes #339