Skip to content

Commit

Permalink
docs(private-packages): add a note about Yarn 2+ (#11692)
Browse files Browse the repository at this point in the history
  • Loading branch information
ylemkimon committed Sep 12, 2021
1 parent fe45377 commit 0a5cee1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/usage/getting-started/private-packages.md
Expand Up @@ -259,6 +259,12 @@ However be aware that if your `.npmrc` is too big to encrypt then the above comm
}
```

#### Yarn 2+

Renovate doesn't support reading `npmRegistries` and `npmScopes` from `.yarnrc.yml`, so `hostRules` (or `npmToken`) and `npmrc` should be configured like above.
Renovate updates `npmRegistries` in `.yarnrc.yml` with resolved `hostRules` before running Yarn.
For Renovate to overwrite existing `npmRegistries` entry, the key should match the `matchHost` without the protocol (`http:` or `https:`) and with the trailing slash.

### nuget

For each known NuGet registry, Renovate searches for `hostRules` with `hostType=nuget` and matching host.
Expand Down

0 comments on commit 0a5cee1

Please sign in to comment.