4. .yarnrc
4. .yarnrc
.yarnrc
files allow you to configure additional Yarn features. The config
command may also be used to set these options. Yarn will merge .yarnrc
files up the file tree.
yarn-offline-mirror
yarn-offline-mirror "./packages-cache"
Maintain offline copies of your packages for more repeatable and reliable builds. Find more information here-
Value must be a relative file path, or false
to disable the mirror (default)-
yarn-offline-mirror-pruning
yarn-offline-mirror-pruning true
Control automatic pruning of the offline mirror. Find more information here.
Value must a boolean, defaults to false
.
disable-self-update-check
disable-self-update-check true
When installing packages, Yarn will provide upgrade instructions if you have an outdated CLI installation. You can disable this check here.
Value must be a boolean, defaults to false
.
CHILD_CONCURRENCY
CHILD_CONCURRENCY #number#
Controls the number of child processes run parallely to build node modules.
Setting this number to 1 will cause the node modules to be built sequentially which can avoid linker errors on windows with node-gyp.
© 2016–2017 Yarn Contributors
Licensed under the BSD License.
https://yarnpkg.com/en/docs/yarnrc