You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can certain settings only be set via one option, i.e. only via pnpm-workspace.yaml, only via CLI, or only via env var? — Or can all settings be set via all options?
Global configuration file: ~/.config/pnpm/rc (an INI-formatted list of key = value parameters)
Two issues:
Is ~/.config/pnpm hard coded? — Or is it ${XDG_CONFIG_HOME:=${HOME}/.config}/pnpm?
Alternatively, you could add the env variable to the setting description:
loglevel
Default: info
Type: debug, info, warn, error
Any logs at or higher than the given level will be shown. You can instead pass --silent to turn off all output logs.
⇓
loglevel
Default: info
Type: debug, info, warn, error
Environment Variable: PNPM_LOG_LEVEL
Any logs at or higher than the given level will be shown. You can instead pass --silent to turn off all output logs.
Uh oh!
There was an error while loading. Please reload this page.
https://pnpm.io/settings
Two issues:
Builtin npmrc -
/path/to/npm/npmrc
Global npmrc -
${NPM_CONFIG_GLOBALCONFIG:=$PREFIX/etc/npmrc}
User .npmrc -
${NPM_CONFIG_USERCONFIG:=$HOME/.npmrc}
Global Conf -
${XDG_CONFIG_HOME:=${HOME}/.config}/pnpm/rc
Project .npmrc -
/path/to/my/project/.npmrc
Project Conf
/path/to/my/project/pnpm-workspace.yaml
Env
CLI
https://docs.npmjs.com/cli/v11/using-npm/config#npmrc-files
What if you use them all, e.g. global config file, env variable, and pnpm-workspace.yaml all contain the same setting but with different values.
https://pnpm.io/settings#node-mirror
https://pnpm.io/settings#executionenvnodeversion
SCREAMING_SNAKE_CASE? SCREAMING_SNAKE_CASE with a
PNPM
prefix?What do you do with
-
,.
, or:
?Can certain settings only be set via one option, i.e. only via
pnpm-workspace.yaml
, only via CLI, or only via env var? — Or can all settings be set via all options?Two issues:
Is
~/.config/pnpm
hard coded? — Or is it${XDG_CONFIG_HOME:=${HOME}/.config}/pnpm
?What is the format of the keys?
https://pnpm.io/settings#fetchretries
https://pnpm.io/settings#node-mirror
https://pnpm.io/settings#executionenvnodeversion
Are the keys case sensitive? Should they be in SCREAMING_SNAKE_CASE? SCREAMING_SNAKE_CASE with a
PNPM
prefix?The text was updated successfully, but these errors were encountered: