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
Use workspace:^
to specify @babel/
dependencies
#13772
Use workspace:^
to specify @babel/
dependencies
#13772
Conversation
The feature was added in yarnpkg/berry#3386 which is currently in a canary release
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit e76a1b6:
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/49382/ |
a2012c6
to
740f4e5
Compare
I updated this PR to also use |
7d8c4a4
to
e76a1b6
Compare
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.
Cool, so when we publish it'll auto update to the version, found the url https://yarnpkg.com/features/workspaces/#publishing-workspaces (dont know if we want to specify these kinds of things in our contributing, I guess it's enforced too?)
Yeah it's enforced by the constraints file (and rbh I think most contributors won't even notice). |
When
workspace:^
,yarn
automatically replaces it with the correct version (still using the^
marker) at pack time. This has the advantage that we stop getting conflicts due topackage.json
changes, sincedependencies
won't be modified on publish anymore. Yarn uses this feature for their monorepo: yarnpkg/berry#3431