Replies: 1 comment
-
Did you eventually find a solution? I have similar issue described here: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Background
My organization has two registries of the same name (say
my-org
); one is public and is hosted via NPM, and the other one is private and hosted in GitHub. Unfortunately, there is no registry mirroring between the two, and internal packages that require annpmAuthToken
are published to the private one, while the others to public.Current Status
We have recently moved to Yarn v3 and initialized our
.yarnrc.yml
like:... and for the sake of simplicity our
package.json
contain these two dependencies that needs to be installed:@my-org/public-pkg
(hosted in NPM publicly)@my-org/private-pkg
(hosted in GitHub privately)Problem
Since the
yarnrc.yml
is configured to look in the private registry for everything with@my-org/*
pattern, it fails to retrieve the@my-org/public-pkg
package, when ideally it should look for it in the public registry as a fallback first before eventually failing.Question
.yarnrc.yml
or if there's a workaround for this? Just curious.Beta Was this translation helpful? Give feedback.
All reactions