Replies: 4 comments 4 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.
-
|
What if I don't want any workspace, I want stand-alone project, but I need configuration? I couldn't figure it out. Bellow all done with pnpm 10.28.1 (behind corepack, but I verified the first examples without corepack to be sure, same results) Currently I have this, and I cannot make it work:
(Yes, I am aware that nesting node projects during development like this is prone to issues due to the recursive nature of node_modules search) I observed
I did try a lot of things, of which i wrote 15% before I stopped, as it already made the post way tooo long. TL;DR, in
In the end, I gave up mid-way trying a lot of stuff with yaml workspace config, usually running
P.S. |
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:
.npmrcfor most of the settings. Mostly simple settings but also some that can be arrayspnpmfield inpackage.json. These are mostly more complex settings with arrays and objects.pnpm-workspace.yamlWe need to stop storing settings in
package.jsonas it breaks the fetch command. See related issue: #9033. Moving all settings to the.npmrcini file is not convenient. The best approach seems to be to move all the settings topnpm-workspace.yaml. On top of the settings frompackage.jsonwe may also move all the pnpm-specific settings from.npmrcand only keep auth related settings in.npmrcfor 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
.npmrcfrom v12. Related issue: #9232Beta Was this translation helpful? Give feedback.
All reactions