-
-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
chore: migrate to Yarn Modern #6028
Changes from 25 commits
715e4cd
b465d64
dcfdac0
52e806a
e6cedb5
7abc673
9daa205
140fc53
2da3498
9afa8bd
00a79fc
8365966
5997e7d
826418a
8475533
6b6cff4
b9c59c4
bebb88f
390eabb
560bf61
0e288cd
11a7bef
60cb526
c124b1d
76ed135
74409f4
9404a33
cece96b
f4cc64c
eecb47c
f6a4bf2
177d622
ecc4af6
3f08cde
e89a27a
a0fb1da
6ff7234
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
enableInlineBuilds: true | ||
|
||
nodeLinker: node-modules | ||
|
||
plugins: | ||
- path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs | ||
spec: "@yarnpkg/plugin-workspace-tools" | ||
- path: .yarn/plugins/@ojkelly/plugin-build.cjs | ||
spec: "https://yarn.build/latest/build" | ||
|
||
yarnPath: .yarn/releases/yarn-3.2.0-rc.7.cjs |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
module.exports = {}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,18 +18,18 @@ | |
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"@docusaurus/core": "2.0.0-beta.9", | ||
"@docusaurus/utils": "2.0.0-beta.9", | ||
"@docusaurus/utils-common": "2.0.0-beta.9", | ||
"@docusaurus/utils-validation": "2.0.0-beta.9", | ||
"@docusaurus/core": "workspace:*", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess this is only for testing purposes? I have no idea if it works well with NPM or Lerna. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, this is how things are done in Yarn 3. Putting an actual version would make it fetch from the npm registry. Plus, this way, the release diff is smaller. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We use lerna to automate the release (yes, a weird mix of yarn workspaces and lerna). In the perfect world we ditch lerna altogether in this PR, but otherwise we have to make sure they interop There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
NIT: Only if the range doesn't match the version of the workspace There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wait, @merceyz Does that mean we can keep using the actual version ( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Actually—no, let's not get stuck on the good old lerna forever. @slorber What's your call? Should we migrate to using Yarn workspaces throughout or should we continue using lerna, provided they would have similar DX and no user-side differences? |
||
"@docusaurus/utils": "workspace:*", | ||
"@docusaurus/utils-common": "workspace:*", | ||
"@docusaurus/utils-validation": "workspace:*", | ||
"chalk": "^4.1.2", | ||
"eta": "^1.12.3", | ||
"fs-extra": "^10.0.0", | ||
"lodash": "^4.17.20", | ||
"tslib": "^2.3.1" | ||
}, | ||
"devDependencies": { | ||
"@docusaurus/types": "2.0.0-beta.9" | ||
"@docusaurus/types": "workspace:*" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.4 || ^17.0.0", | ||
|
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.
are you sure about this?
i think you are missing
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.
I'm still investigating this. It seems the
postinstall
hooks aren't even executedThere 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.
They are, but only when the dependency tree changes.