pnpm config
Aliases: c
Gerencia os arquivos de configurações.
The configuration files are in INI
(the global) and YAML
(the local) formats.
The local configuration file is located in the root of the project and is named pnpm-workspace.yaml
.
O arquivo de configuração global está localizado em um dos seguintes locais:
- If the $XDG_CONFIG_HOME env variable is set, then $XDG_CONFIG_HOME/pnpm/rc
- On Windows: ~/AppData/Local/pnpm/config/rc
- On macOS: ~/Library/Preferences/pnpm/rc
- On Linux: ~/.config/pnpm/rc
Comandos
set <key> <value>
Define a chave da configuração para o valor fornecido.
get <key>
Exibe o valor da configuração para a chave fornecida.
delete <key>
Remove a chave do arquivo de configuração.
list
Exibe todas as configurações.
Opções
--global, -g
Define a configuração no arquivo de configuração global.
--location
When set to project
, the .npmrc
file at the nearest package.json
will be used. If no .npmrc
file is present in the directory, the setting will be written to a pnpm-workspace.yaml
file.
When set to global
, the performance is the same as setting the --global
option.
--json
Mostre todas as opções de configuração no formato JSON.