-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
Enforce same version of a dependency #12668
Conversation
@mrazauskas one version check is ready! |
be2e16e
to
a1efce1
Compare
@@ -25,8 +25,7 @@ | |||
"slash": "^3.0.0" | |||
}, | |||
"devDependencies": { | |||
"@jest/test-utils": "^28.0.0-alpha.8", | |||
"@types/node": "*" | |||
"@jest/test-utils": "^28.0.0-alpha.8" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we use workspace:*
to reference the package in jest monorepo consistently instead of using the real version?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, however lerna doesn't understand it: lerna/lerna#2564
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yarnpkg/berry
and babel
both use workspace:
schema to specify internal deps via yarn without lerna, maybe we could achieve that without lerna?
now we only use lerna to publish packages, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only used to publish, yes
Co-authored-by: Tom Mrazauskas <tom@mrazauskas.de>
4e73349
to
1588faa
Compare
@SimenB this pr is ready. could you take a look? |
@@ -25,8 +25,7 @@ | |||
"slash": "^3.0.0" | |||
}, | |||
"devDependencies": { | |||
"@jest/test-utils": "^28.0.0-alpha.8", | |||
"@types/node": "*" | |||
"@jest/test-utils": "^28.0.0-alpha.8" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, however lerna doesn't understand it: lerna/lerna#2564
yarn.lock
Outdated
@@ -2651,7 +2663,21 @@ __metadata: | |||
languageName: unknown | |||
linkType: soft | |||
|
|||
"@jest/globals@^28.0.0-alpha.8, @jest/globals@workspace:*, @jest/globals@workspace:packages/jest-globals": | |||
"@jest/fake-timers@npm:^27.5.1": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we're now pulling in more 27 stuff, can these remain workspace:*
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
probably from the one example using workspace:*
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great stuff, thanks!
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Test plan
green ci