New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pnpm publish doesn't work correctly with workspaces and npm 8.5.0 #4348
Comments
Maybe a bug in npm. pnpm packs the tarball with the right manifest and then run the npm CLI to publish the prepared tarball:
From the description it looks like npm CLI ignores the tarball and packs the folder on its own. |
I have the same problem: pnpm version: Code to reproduce the issue:
Expected behavior: Workspace references have been replaced with an actual version in the published package. Actual behavior: Additional information: |
I have the same problem, the "workspace:^" not repleaced. |
I think npm v7 works because we use npm v7 to publish pnpm and we don't have this issue. |
Meet same issue today with node v16.14.2 and npm 8.5.0, 7.24.2. |
I encountered the same issue and downgrade to node v14.19.1 and npm 6.14.16 doesn't solved this for me.
|
Maybe we could use a library from npm (https://github.com/npm/cli/tree/latest/workspaces/libnpmpublish) or from Yarn, to do the publishing. |
I could not reproduce this issue. |
i used workaround, add |
🚢 6.32.11 and v7.0.0-rc.9 |
@zkochan I can confirm my issue has been resolved with latest pnpm and node v18! Thanks a lot! |
It happened to me, too. What's the solution |
Had the same issue from GitHub actions (monorepo)
I found the problem and its solution:
|
currently experiencing the same with:
|
I am facing the same issue |
Encountering the same issue here as well. |
I've always had this problem node pnpm Can there be a complete solution |
(I'm not sure if this issue is related to pnpm or npm)
pnpm version:
6.31.0
Code to reproduce the issue:
"foo": "workspace:*"
pnpm publish -r
Expected behavior:
Workspace references have been replaced with an actual version in the published package.
Actual behavior:
The published package still contains
"workspace:*"
as version, making it not installable.Additional information:
pnpm pack
the version is being appliedThe text was updated successfully, but these errors were encountered: