-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
[monorepo]: updating package version is HARD #9689
Comments
For step 3. executing Seems like after:
this seems at least partly better. and we can create a small wrapper script around this "version bumping" process for releases (update version in package.json, lint-packages, npm install) |
Unfortunately, |
Created npm/cli#3940 in the NPM CLI with a small repro. |
Closing for now since we have a workaround |
TL;DR: introduce a single command to update package version.
Context
After the migration to a monorepo, it's hard to update package version.
As of today, what needs to be done:
//package.json
npm run lint-packages
. This will propagate version to sub-packages//package-lock.json
and//packages/create-playwright/package-lock.json
. I usually usesed
for this, for BSD sed it looks like this:The last part is especially tricky. Without doing so, the
npm install
call just fails.The text was updated successfully, but these errors were encountered: