Experimenting with yarn
as a substitute for npm
has been quite interesting.
With npm, we usually rely on both a private sinopia registry and the official repository for some namespaced packages, since sinopia doesn't support namespaces.
My .npmrc
file includes these registry definitions:
registry=http://sinopia-registry.internal:4873/
@types:registry=https://registry.npmjs.org
I am aware that I can globally set the registry in yarn
using its .yarnrc
file like this:
registry "http://sinopia-registry.internal:4873/"
But how do I instruct yarn to use a different registry for @types
namespaced packages?
I've attempted various methods such as:
registry @types "https://registry.npmjs.org/"
However, all my attempts result in syntax errors being flagged by yarn.