You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I updated the commander.js version under packages/cli in a recent PR by updating the package.json (and correspondingly the package-lock.json) in packages/cli. Then today I was checking out one of my PR branch on another machine and decided to run npm run setup again to update all relevant dependencies. After running the npm run setup command, the main package-lock.json file in the root directory was modified. I am not sure but it seems like it might be a result of a recent dependency changes.
From the developer guide, I see that it mentions
Hence, instead of manually updating the version numbers in the packages' package.json files, you may consider using the lerna add command to speed things up!".
I did not use lerna add as I was doing a dependency update and wasn't sure if there is a difference between adding and updating in lerna's context.
So my question is:
when adding/updating/deleting dependencies, do we have to rerun npm run setup to verify that the main package-lock.json is updated correctly? And is it correct to run npm commands in sub packages when updating/deleting dependencies? I don't see any lerna commands with regards to this... in fact the following:
Wondering if any of the senior devs who are more familiar with lerna could share some of the common commands used and perhaps we can thereafter add them into the developer guide.
Thanks!
The text was updated successfully, but these errors were encountered:
I updated the commander.js version under packages/cli in a recent PR by updating the package.json (and correspondingly the package-lock.json)
Wondering if any of the senior devs who are more familiar with lerna could share some of the common commands used and perhaps we can thereafter add them into the developer guide.
This part is indeed not well documented at the moment, I think we could:
add the above instructions in (that's a valid approach (edit package-lock -> re run npm run setup))
+ maybe update the lerna add section, with --scope (I missed this out when writing that part), or just remove it entirely since there isn't a corresponding lerna remove per your screenshot 😉 (I'm favouring the latter)
Then today I was checking out one of my PR branch on another machine and decided to run npm run setup again to update all relevant dependencies.
Thanks for the catch. That slipped by from another PR, I've removed the extra changes.
Hi active devs,
I updated the commander.js version under
packages/cli
in a recent PR by updating the package.json (and correspondingly the package-lock.json) inpackages/cli
. Then today I was checking out one of my PR branch on another machine and decided to runnpm run setup
again to update all relevant dependencies. After running thenpm run setup
command, the mainpackage-lock.json
file in the root directory was modified. I am not sure but it seems like it might be a result of a recent dependency changes.From the developer guide, I see that it mentions
I did not use
lerna add
as I was doing a dependency update and wasn't sure if there is a difference between adding and updating in lerna's context.So my question is:
when adding/updating/deleting dependencies, do we have to rerun
npm run setup
to verify that the mainpackage-lock.json
is updated correctly? And is it correct to run npm commands in sub packages when updating/deleting dependencies? I don't see any lerna commands with regards to this... in fact the following:Wondering if any of the senior devs who are more familiar with lerna could share some of the common commands used and perhaps we can thereafter add them into the developer guide.
Thanks!
The text was updated successfully, but these errors were encountered: