Description
~/.yarnrc
currently contains:
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
lastUpdateCheck 1490798662566
The other rc files in your home directory are meant to be edited directly. (It's fine to offer additional ways to edit the file, but direct editing should an option. Ferexample, ~/.npmrc
is meant to be edited directly or with assistance from npm config
)
Another difference is that rc files should only contain configuration information. lastUpdateCheck is state, and only applies to the local machine. This means that anyone who includes ~/.yarnrc
in their dotfiles repo will need to resolve conflicts frequently. That's quite a few people: https://www.google.com/search?q=dotfiles+yarnrc
Potential Solution
Best would be to move the state information to a separate file (say, ~/.yarn-cache
or ~/.cache/yarn
). That keeps configuration and state separate, and putting ~/.yarnrc
in dotfiles would work again.
If configuration information and state information must be stored in the same file, then removing the "rc" from the end of the filename would help a lot. Adding a # DO NOT COMMIT TO YOUR DOTFILES
comment to the file would also reduce confusion.
First mentioned in #3010
Activity