Skip to main content

Module yarnrc

Module yarnrc 

Source
Expand description

Yarn (.yarnrc.yml) configuration management.

Handles parsing, updating, and writing npmScopes authentication entries (npmAlwaysAuth and npmAuthToken) in .yarnrc.yml files.

Functionsยง

transform_yarnrc_contents
Transforms Yarn (.yarnrc.yml) content in memory to insert authentication tokens for detected scopes.
transform_yarnrc_contents_with_policy
Transform Yarn configuration using the same registry policy as npm.
update_yarn_configs
Updates .yarnrc.yml files with the access token.
update_yarn_configs_with_policy
Update Yarn configuration with an explicit registry-domain policy.