-
-
Notifications
You must be signed in to change notification settings - Fork 35
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
fix: cannot find publish
module if cli
inside a monorepo package
#573
Conversation
@johnsoncodehk thanks for the contribution, it looks like the PR is failing because the pnpm lock file is outdated. I also wonder why you got this error and you didn't have this problem before with version 1.x. Are you having this problem because you mark @lerna-lite as an Note that I upgraded to pnpm v8 today, if you are still on v7 and need help to update the lock file then let know and I can update by forking your PR, they changed the lock file structure quite a lot in v8 (see pnpm v8) EDIT Actually after relooking at your PR, I'm not that would work in terms of the project. I made
I guess that is what I understood then, it makes the peer deps optional, I need to make sure these 2 commands stay optional without adding peer deps as much as possible. The reason why was because some users are only interested in the |
Your understanding of I'll try to provide a minimal reproduction tomorrow. |
@johnsoncodehk is the PR still required since I couldn't replicate with pnpm 8 (as per my previous comment)? |
Sorry for the delay, I will find time to check today. |
This is a minimal reproduction: https://github.com/johnsoncodehk/lerna-lite-573 |
Codecov Report
@@ Coverage Diff @@
## main #573 +/- ##
=======================================
Coverage 98.12% 98.12%
=======================================
Files 152 152
Lines 11424 11424
Branches 2027 2028 +1
=======================================
Hits 11209 11209
Misses 214 214
Partials 1 1 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
@johnsoncodehk thanks for the repro, I tried it and do see the error. What I wonder however is this, do we need this change in other package as well? I'm asking because in this case you are only interested in |
Yes you should make the same changes to all related packages, if you agree I will close the PR and leave it to you. |
@johnsoncodehk yeah that's fine, I will merge your PR and contribution and apply this change to all packages later. I assume you can wait few more days right? I mean this is not a blocker is it? Because I have some small CLI issues to resolve with another user and it might take couple days since we aren't on the same TZ (like you and me too ;) |
Oh thanks. :) Yes, I can add error-reporting deps in root package.json to avoid problems. |
@johnsoncodehk Could you review PR #578 that I just opened for all optional commands. I also changed the peer to |
|
Description
Fixes
Cannot find package '@lerna-lite/publish' imported from ...
error for monorepo projects.Motivation and Context
How Has This Been Tested?
$ pnpm i && npm run setup:vue
$ cd volar && npm run release
Types of changes
Checklist: