pnpm config
Aliases: c
Gérer les fichiers de configuration.
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
.
Le fichier de configuration global est situé à l'un des emplacements suivants :
- 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
Commandes
set <key> <value>
Associe la valeur à la clé, dans la configuration.
get <key>
Affiche la valeur de la configuration pour la clé fournie.
delete <key>
Supprime la configuration associée à la clé donnée.
list
Afficher tous les paramètres de configuration.
Options
--global, -g
Définissez la configuration dans le fichier global de configuration.
--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
Affichez tous les paramètres de configuration au format JSON.