pnpm config
Aliases: c
Управление файлами конфигурации.
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
.
Общий конфигурационный файл расположен в одном из следующих мест:
- 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
Команды
set <key> <value>
Задать з начение ключа конфигурации.
get <key>
Вывести значение конфигурации для предоставленного ключа.
delete <key>
Удалить ключ конфигурации из файла конфигурации.
list
Вывести все параметры конфигурации.
Опции
--global, -g
Установите конфигурацию в глобальном конфигурационном файле.
--location
When set to project
, the .npmrc
file at the nearest package.json
will be used.
When set to global
, the performance is the same as setting the --global
option.
--json
Вывести все настройки конфигурации в формате JSON.