-
-
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
cleanup from trying out yarn pnp #8175
Conversation
babel.config.js
Outdated
@@ -4,28 +4,31 @@ module.exports = { | |||
babelrcRoots: ['examples/*'], | |||
overrides: [ | |||
{ | |||
presets: ['@babel/preset-flow'], | |||
presets: [require.resolve('@babel/preset-flow')], |
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.
Otherwise Babel would resolve these from e2e dirs that are not Yarn workspaces, where they are not installed as deps
@@ -84,6 +84,7 @@ exports[`renders the TextInput component 1`] = ` | |||
<TextInput | |||
allowFontScaling={true} | |||
autoCorrect={false} | |||
rejectResponderTermination={true} |
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.
From react-native
update, @orta said thisisfine.jpeg
@@ -19,7 +19,8 @@ | |||
"jest-regex-util": "^24.3.0" | |||
}, | |||
"devDependencies": { | |||
"@types/ansi-styles": "^3.2.1" | |||
"@types/ansi-styles": "^3.2.1", | |||
"immutable": "^4.0.0-rc.12" |
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.
packages/jest-snapshot/package.json
Outdated
@@ -27,6 +27,7 @@ | |||
"jest-haste-map": "^24.0.0" | |||
}, | |||
"devDependencies": { | |||
"@babel/traverse": "^7.4.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.
05ff986
to
1e6431a
Compare
Using |
b75adb2
to
ef0d20a
Compare
Codecov Report
@@ Coverage Diff @@
## master #8175 +/- ##
======================================
Coverage 62.3% 62.3%
======================================
Files 265 265
Lines 10473 10473
Branches 2542 2541 -1
======================================
Hits 6525 6525
Misses 3366 3366
Partials 582 582 Continue to review full report at Codecov.
|
5fee834
to
1c310de
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.
There's a bunch of extra stuff in node_modules now, maybe not an issue? Seems less than ideal, though
yarn.lock
Outdated
dependencies: | ||
uglify-es "^3.1.9" | ||
|
||
metro-react-native-babel-preset@*, metro-react-native-babel-preset@0.49.2: | ||
metro-react-native-babel-preset@*: |
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.
This is now duplicated
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.
Updated react-native once more, but that doesn't change it. Upgrading metro-react-native-babel-preset
also updates Babel to 7.4.0, so 🤷♂️
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.
Nevermind had to revert even the react-native update because it updated Babel. I don't really want to spend more time optimizing resolutions, it's super annoying while our Babel dev dependency ranges include "broken" versions.
645cf18
to
45df10a
Compare
I've removed the problematic parts (babel config |
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
Trying out Yarn PnP some more again revealed a few things we can do better
Test plan
We'll see if CI passes.