You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I verified that the issue exists in the latest pnpm release
pnpm version
8.15.1
Which area(s) of pnpm are affected? (leave empty if unsure)
CLI
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
Install same dependency in two packages inside workspace. The two installs must have either: (1) different outdated versions or (2) same outdated version + different dependency type (dev or prod)
Run pnpm -r outdated --json
Describe the Bug
The command is returning a single instance of the outdated dependency even though there is more than one. Take the following example where a workspace has two packages -- package-a and package-b -- installing vue@2.7.14, one inside dependencies and the other one inside devDependencies.
The dependencyType and current version need to be taken into account in the JSON structure. Another alternative would be to use collections instead of objects:
Verify latest release
pnpm version
8.15.1
Which area(s) of pnpm are affected? (leave empty if unsure)
CLI
Link to the code that reproduces this issue or a replay of the bug
No response
Reproduction steps
pnpm -r outdated --json
Describe the Bug
The command is returning a single instance of the outdated dependency even though there is more than one. Take the following example where a workspace has two packages --
package-a
andpackage-b
-- installingvue@2.7.14
, one insidedependencies
and the other one insidedevDependencies
.Running
pnpm -r outdated vue
, this is the output:And running
pnpm -r outdated vue --json
, this is the output:Expected Behavior
I'd expect to have all the involved packages in the resulting JSON. Something like this:
The
dependencyType
andcurrent
version need to be taken into account in the JSON structure. Another alternative would be to use collections instead of objects:The fix should be done here
Which Node.js version are you using?
v20.9.0
Which operating systems have you used?
If your OS is a Linux based, which one it is? (Include the version if relevant)
No response
The text was updated successfully, but these errors were encountered: