Replies: 2 comments 3 replies
-
There are many subtle bugs related to |
Beta Was this translation helpful? Give feedback.
2 replies
-
This is a good idea! We've hit a lot of strange issues when reusing |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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 PR:
pnpm-workspace.yaml
#9121Beta Was this translation helpful? Give feedback.
All reactions