yarn config set
This command will set a configuration setting, by default in the project configuration file unless the -H,--home flag is set, in which case it will be set in the home configuration file.
When used without the --json flag, the new value will be hydrated depending on the type of the field being set: primitives such as strings will be hydrated directly, while complex types such as arrays and objects will be hydrated through JSON.
When used with the --json flag, the new value will always be parsed as JSON before being written to the configuration file.
Options
| Option | Description |
|---|---|
--home | If set, the configuration will be set in the home configuration file |
--json | Set complex configuration settings to JSON values |