Replies: 3 comments 3 replies
-
There are many subtle bugs related to |
Beta Was this translation helpful? Give feedback.
-
This is a good idea! We've hit a lot of strange issues when reusing |
Beta Was this translation helpful? Give feedback.
-
I would like to also make it possible to share settings via configurational dependencies. I think the easiest and most powerful way to do it would be via introducing a new hook for config settings that could read the existing settings and extend/change them. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently we use 3 files for configuring pnpm:
.npmrc
for most of the settings. Mostly simple settings but also some that can be arrayspnpm
field inpackage.json
. These are mostly more complex settings with arrays and objects.pnpm-workspace.yaml
We need to stop storing settings in
package.json
as it breaks the fetch command. See related issue: #9033. Moving all settings to the.npmrc
ini file is not convenient. The best approach seems to be to move all the settings topnpm-workspace.yaml
. On top of the settings frompackage.json
we may also move all the pnpm-specific settings from.npmrc
and only keep auth related settings in.npmrc
for npm compatibility.Some settings may be project-specific. Instead of creating separate configuration files for projects in the workspace, we could create configuration overrides in the root
pnpm-workspace.yaml
. For instance:Related PRs:
pnpm-workspace.yaml
#9121npm CLI will disallow 3rd party settings in
.npmrc
from v12. Related issue: #9232Beta Was this translation helpful? Give feedback.
All reactions