Support pnpm workspaces #25330
Replies: 2 comments 2 replies
-
Hi there, Get your discussion fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. To get started, please read our guide on creating a minimal reproduction. We may close the discussion if you, or someone else, haven't created a minimal reproduction within two weeks. If you need more time, or are stuck, please ask for help or more time in a comment. Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
We need a reproduction which demonstrates the scenario which fails today and would be fixed by supporting workspaces |
Beta Was this translation helpful? Give feedback.
-
Tell us more.
This feature request is similar to #20324 (fixed in #20420).
Unlike yarn and npm, pnpm relies on
pnpm-workspace.yaml
as a source of truth for monorepo workspaces. Usage ofpackage.json
→workspaces
is not supported (pnpm/pnpm#2255).I created
packages/@local/eslint-config
andpackages/@local/eslint-config
in a private monoepo. These folders define two private packages named"@local/eslint-config"
and"@local/tsconfig"
. Two other workspaces (inapps/*
) declare@local/*
packages asdevDependencies
.The setup is working, but Renovate Dashboard shows this now:
Warning
Renovate failed to look up the following dependencies:
Failed to look up npm package @local/eslint-config
,Failed to look up npm package @local/tsconfig
.Files affected:
apps/a/package.json
,apps/b/package.json
My
pnpm-workspaces.yaml
contains the following:The issue is non-blocking, i.e. it does not break anything. The warning is a bit confusing but folks can live with it.
Hope that getting the list of workspaces from
pnpm-workspace.yaml
is not too hard given that #20420 is already working. Happy to help with testing. Renovate rocks! 💯UPD: Reproduction:
Beta Was this translation helpful? Give feedback.
All reactions