You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to configure a registry on a per-package basis?
We are using AWS CodeArtifact to host several packages and the scope remains the same for the package, however that same scope needs to be resolvable from a different registry for different packages.
In the case of AWS CodeArtifact, a package "repository" informs the registry URL, and the AWS CodeArtifact repository is unopinionated about the NPM scopes that the packages published there use.
To change the registry on a per scope basis we currently can set the following configuration in yarnrc.yml:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Is it possible to configure a registry on a per-package basis?
We are using AWS CodeArtifact to host several packages and the scope remains the same for the package, however that same scope needs to be resolvable from a different registry for different packages.
In the case of AWS CodeArtifact, a package "repository" informs the registry URL, and the AWS CodeArtifact repository is unopinionated about the NPM scopes that the packages published there use.
To change the registry on a per scope basis we currently can set the following configuration in
yarnrc.yml
:It would be hugely useful to be able to set configuration so that specific packages resolve to specific registries:
Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions