Replies: 3 comments 4 replies
-
@zkochan Do you know a way to easily use I am having trouble figuring out the
|
Beta Was this translation helpful? Give feedback.
-
I'd love to see a command like this being implemented! I typically upgrade dependencies in my monorepo with Running the original So a command like |
Beta Was this translation helpful? Give feedback.
-
Hi @zkochan. I tried the new Suppose I have some existing peer dependency issues already reported by a previous The best for me would be a single command that:
If I understand correctly, the problem is that the resolution step is expensive. |
Beta Was this translation helpful? Give feedback.
-
I often run an app that errors due to missing peer dep. Some missing peer deps are okay and others require attention.
I want to write a plugin for Webpack that will check for missing peers when an error occurs.
Working in a large monorepo, running a full install and waiting for it to report warnings is quite slow. So I want this information cached from the last install.
I'd like a command that will display all the warnings from the last install. Note that I often run an install just for a single directory for performance purposes.
Peer errors only seem to be reported on a
pnpm add x
, not when runningpnpm i
.Workaround
Wrap pnpm and use the json reporter to then write all the peer dep warnings to a file on disk.
An issue is that I want to use
--reporter=ndjson
and direct it to a file, but I also want normal log messages. Maybe we need a custom reporter.Research
Explore using
import {getPeerDependencyIssues} from '@pnpm/core'
and see it's fast enough. Maybe still fall back to cache.Would also need a way to know if cache is invalidated. I can't remember if we ended up implementing this, I think I made an earlier issue about whether pnpm can quickly know if it needs to run an install if any package.json has changed.
Beta Was this translation helpful? Give feedback.
All reactions