All tools/Yarn

Yarn

yarn

A package manager that doubles down as project manager.

Detected by yarn, yarnpkg | macOS, Linux, Windows |yarnpkg.com

Sync rules

What travels, what stays, what never leaves
Yarn in your home directory Every rule on this page, by file
enableGlobalCache: true
npmRegistryServer: "https://registry.yarnpkg.com"
cacheFolder: /Users/octocat/Library/Caches/Yarnmachine-local
globalFolder: /Users/octocat/.yarn/berrymachine-local
npmAuthToken: npm_FAKE00000000000000000000000000000000
npmAuthIdent: octocat:FAKEpassword0000

Each machine keeps its own copy of these.

npmAuthTokennpmAuthIdentnpmRegistries.*.npmAuthTokennpmRegistries.*.npmAuthIdentnpmScopes.*.npmAuthTokennpmScopes.*.npmAuthIdent

Lifted into your secret store; the rest of the file syncs.

registry "https://registry.yarnpkg.com"
yarn-path "/Users/octocat/.yarn/releases/yarn-1.22.22.cjs"machine-local
disable-self-update-check true
--cache-folder "/Users/octocat/Library/Caches/Yarn"machine-local
--install.check-files true

Each machine keeps its own copy of these.

· ~/.yarn/berry/ Exclude

Only what the catalog names. A directory that syncs brings everything inside it except what is listed as excluded here.

Use it with your dotfile manager

Same data, in the shape your tool already reads
Opens Otty and adds this tool to what it syncs

Opens otty://sync/add/yarn. Otty ships with this catalog, so the link only has to name the tool — nothing is downloaded.

Every one of these is generated from the same rules as this page. None of them splits cacheFolder and globalFolder for you — that part is Otty’s own sync, or a template you write by hand.