Use workspace:^ to specify @babel/ dependencies#13772
Use workspace:^ to specify @babel/ dependencies#13772nicolo-ribaudo merged 3 commits intobabel:mainfrom
workspace:^ to specify @babel/ dependencies#13772Conversation
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
hzoo
left a comment
There was a problem hiding this comment.
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:^,yarnautomatically replaces it with the correct version (still using the^marker) at pack time. This has the advantage that we stop getting conflicts due topackage.jsonchanges, sincedependencieswon't be modified on publish anymore. Yarn uses this feature for their monorepo: yarnpkg/berry#3431