Instantiate a new configuration object exposing the configuration obtained from reading the various rc files and the environment settings.
The pluginConfiguration
parameter is expected to indicate:
which modules should be made available to plugins when they require a package (this is the dynamic linking part - for example we want all the plugins to use the exact same version of @yarnpkg/core, which also is the version used by the running Yarn instance).
which of those modules are actually plugins that need to be injected within the configuration.
Note that some extra plugins will be automatically added based on the content of the rc files - with the rc plugins taking precedence over the other ones.
One particularity: the plugin initialization order is quite strict, with plugins listed in /foo/bar/.yarnrc.yml taking precedence over plugins listed in /foo/.yarnrc.yml and /.yarnrc.yml. Additionally, while plugins can depend on one another, they can only depend on plugins that have been instantiated before them (so a plugin listed in /foo/.yarnrc.yml can depend on another one listed on /foo/bar/.yarnrc.yml, but not the other way around).
The pluginConfiguration
parameter is expected to indicate:
which modules should be made available to plugins when they require a package (this is the dynamic linking part - for example we want all the plugins to use the exact same version of @yarnpkg/core, which also is the version used by the running Yarn instance).
which of those modules are actually plugins that need to be injected within the configuration.
Note that some extra plugins will be automatically added based on the content of the rc files - with the rc plugins taking precedence over the other ones.
One particularity: the plugin initialization order is quite strict, with plugins listed in /foo/bar/.yarnrc.yml taking precedence over plugins listed in /foo/.yarnrc.yml and /.yarnrc.yml. Additionally, while plugins can depend on one another, they can only depend on plugins that have been instantiated before them (so a plugin listed in /foo/.yarnrc.yml can depend on another one listed on /foo/bar/.yarnrc.yml, but not the other way around).
Generated using TypeDoc
Instantiate a new configuration object with the default values from the core. You typically don't want to use this, as it will ignore the values configured in the rc files. Instead, prefer to use
Configuration#find
.