-
|
Since a This warning popped up in all of my subprojects, including the one generated by Using
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
|
Can you show me your package.json file and also are you actually using pnpm or yarn? |
Beta Was this translation helpful? Give feedback.
-
|
This seems to be due to how projen renders resolutions: https://github.com/projen/projen/blob/bdec85e18b6ec1043ef64816638741e4abeb2b6b/src/javascript/node-package.ts#L1357C37-L1357C43 In the current implementation all pnpm projects will have at a minimum a Another option I just thought of is you could actually just remove the |
Beta Was this translation helpful? Give feedback.
-
|
Looks like the empty pnpm object issue has been resolved in Projen: projen/projen#3072 |
Beta Was this translation helpful? Give feedback.
This seems to be due to how projen renders resolutions: https://github.com/projen/projen/blob/bdec85e18b6ec1043ef64816638741e4abeb2b6b/src/javascript/node-package.ts#L1357C37-L1357C43
In the current implementation all pnpm projects will have at a minimum a
pnpmfield. If resolutions are present then they will be rendered. This could be fixed by changing Projen's implementation to only render apnpmfield if overrides exist, however I don't think the effort is worth it just to remove a warning although completely your call :)Another option I just thought of is you could actually just remove the
pnpmfields by modifying the package.json of each subproject i.e: