pnpm is not being detected by chromatic-cli
See original GitHub issueBug report
Our team has started using pnpm
as our go-to package manager (npm compatibility with existing tooling + performance of yarn2 = win). We’re hitting a snag when using --patch-build
. From what I can gather, that flag causes a call to installDependencies()
which in turn is using yarn-or-npm
to spawn the installation process.
Interestingly, the default seems to be yarn
in our repo even though the README states that npm
is the fallback.
It seems that our pipelines are able to publish to chromatic.com without issue, but I don’t know if the pnpm
support that currently exists with chromatic-cli is intentional or incidental - filing as a bug made sense, but I could also see who this might be a feature request.
Issue Analytics
- State:
- Created 9 months ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
pnpm command not recognized (VS Code) #4810
I've installed pnpm on Windows. The command works in Windows PowerShell Terminal, but I can't get it to work in VS Code PowerShell...
Read more >Installation
If pnpm is broken and you cannot fix it by reinstalling, you might need to remove it manually from the PATH. ... Now...
Read more >chromatic-cli - npm Package Health Analysis
The npm package chromatic-cli was scanned for known vulnerabilities and missing license, and no issues were found. Thus the package was deemed as...
Read more >Automate Chromatic with GitHub Actions • Chromatic docs
forceRebuild, Do not skip build when a rebuild is detected. ... npm, pnpm run: yarn # Adds Chromatic as a step in the...
Read more >pnpm - npm
To quote the Rush team: Microsoft uses pnpm in Rush repos with hundreds of projects and hundreds of PRs per day, and we've...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@wollardj the only reason chromatic needs a patch build is when there is no chromatic build for the merge base of the PR: https://www.chromatic.com/docs/branching-and-baselines#patch-builds
So a more manual solution looks something like:
The patch build feature is really just something to help folks get started with UI review before they have an existing set of builds on their repo.
I’m reluctant to say it’s blocking us. Our primary blocker is time right now; time to look into work arounds. We are able to upload assets to Chromatic, but we’re not able to generate the original patch that Chromatic needs to expose change sets. We can certainly switch to npm or yarn, but then we’re back to our lack of time 😄