For most projects I pull packages from the internal server, so it\'s been added by
yarn config set registry http://custom-packages-server.com
But no
Found the way how to achieve that.
It turned out that you can use .yarnrc file inside the project's directory (yeah, pretty much the same like .npmrc
). And there you can specify custom config properties which yarn will look into first.
So that's how my .yarnrc file looks now.
registry "https://registry.yarnpkg.com"
It is also possible to temporarily override the registry for one yarn
command, without having to modify a file:
yarn --registry=https://registry.company.com/