-
-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add --ignore-missing flag to continue without error on missing packages #460
base: master
Are you sure you want to change the base?
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 |
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