Replies: 1 comment
-
I have the same question, have you solved it @jschuur ? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a pnpm monorepo with an app that has an internal package as a
workspace:*
dependency (sample repo):If I publish the app to an npm registry, do I always need to publish each of my local
workspace:
dependencies as a separate package too?Of course, without a valid package name resolution, another package manager wouldn't know what to do with the
@joostschuur/hello
workspace dependency. I understand why this generates an error:pnpm also helps with versioning when publishing, which is good.
After I also published
@joostschuur/hello
, I could successfully do an npm install of the samplejshello
app that used it.My question is really whether there is some other approach I'm missing here. No way to explicitly include these workspace dependencies in my published files and then have local references to them?
Even if I bundled everything to a single file, wouldn't an npm install process still see dependencies listed and then try and install them and run into the same error?
Beta Was this translation helpful? Give feedback.
All reactions