How to consume a package from a pnpm monorepo fork? #10966
Unanswered
KazimirPodolski
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
A GitHub subdir dependency usually won’t be enough here if the forked package still depends on unpublished The key bit from the pnpm docs is that In practice the reliable options are:
So the fix is usually “consume the whole forked workspace”, not “install one package from a monorepo subpath”. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Fairly common use-case: there is a pnpm monorepo and you need to make changes in one of the packages, and consume it in your project instead of the upstream version. Naturally, you fork it, do the changes, but how do you use the package in your project then?
Complications:
catalog:and/orworkspace:dependenciesworkspace:usage doesn't require it and it's part of the appealFor example, you want to change
@livekit/components-reactfrom https://github.com/livekit/components-js. Naively consuming it with something like"@livekit/components-react": "github:KazimirPodolski/components-js#path:/packages/react"won't work:Beta Was this translation helpful? Give feedback.
All reactions