Support `pnpm` workspaces
See original GitHub issueI’m submitting a Feature request
Motivation / Use Case
I would like a repo that uses pnpm workspaces to be able to use lerna-lite
.
Expected Behavior
When version
or publish
are run in repositories that use pnpm workspaces, the commands should work.
Currently, the following error occurs:
~/elephant/web-packages -> chore/pnpm |• $
❯ pnpm lerna publish
lerna notice cli v1.0.5
lerna info versioning independent
lerna ERR! Error: Unsupported URL Type "workspace:": workspace:^0.3.1
lerna ERR! at unsupportedURLType (/Users/theo/elephant/web-packages/node_modules/.pnpm/npm-package-arg@9.0.2/node_modules/npm-package-arg/lib/npa.js:262:15)
lerna ERR! at fromURL (/Users/theo/elephant/web-packages/node_modules/.pnpm/npm-package-arg@9.0.2/node_modules/npm-package-arg/lib/npa.js:322:13)
lerna ERR! at Function.resolve (/Users/theo/elephant/web-packages/node_modules/.pnpm/npm-package-arg@9.0.2/node_modules/npm-package-arg/lib/npa.js:80:12)
lerna ERR! at /Users/theo/elephant/web-packages/node_modules/.pnpm/@lerna-lite+core@1.0.5/node_modules/@lerna-lite/core/dist/package-graph/package-graph.js:53:60
lerna ERR! at Array.forEach (<anonymous>)
lerna ERR! at /Users/theo/elephant/web-packages/node_modules/.pnpm/@lerna-lite+core@1.0.5/node_modules/@lerna-lite/core/dist/package-graph/package-graph.js:47:44
lerna ERR! at Map.forEach (<anonymous>)
lerna ERR! at new PackageGraph (/Users/theo/elephant/web-packages/node_modules/.pnpm/@lerna-lite+core@1.0.5/node_modules/@lerna-lite/core/dist/package-graph/package-graph.js:43:14)
lerna ERR! lerna Unsupported URL Type "workspace:": workspace:^0.3.1
Other Information
- This same problem is present in the forked lerna repository https://github.com/lerna/lerna/issues/2564#issuecomment-1035392832
- I don’t mind taking a crack at this myself when I can find the time 👍
- My focus is
pnpm
as that is my personal use-case, however this issue is present withyarn
workspaces also.
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Workspace | pnpm
Workspace. pnpm has built-in support for monorepositories (AKA multi-package repositories, multi-project repositories, or monolithic repositories).
Read more >Setup a Monorepo with PNPM workspaces and speed it up ...
In this article we're going to have a deep dive into setting up a new monorepo using PNPM workspaces that hosts a Remix...
Read more >Managing a full-stack, multipackage monorepo using pnpm
pnpm has a “workspaces” facility that we can use to create dependencies between packages in our monorepo. To demonstrate with the basic example, ......
Read more >Support workspaces from package.json · Issue #2255 - GitHub
Yarn calls these packages workspaces. pnpm calls them projects. The term "workspace" is used for a different purpose in pnpm. It is like...
Read more >Exploring the Monorepo #2: Workspaces (npm, pnpm)
[Workspaces] provides support to managing multiple packages from your local files system from within a singular top-level, root package.
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
hey guys, I actually released 1.3.0 to make it more strict match, see the release 1.3.0 for more info. I strongly suggest to use the latest version.
Cheers
released under 1.2.0