-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Test Babel compiled using an old version of @babel/core
#11319
Merged
Merged
Changes from 1 commit
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/bash | ||
|
||
#==============================================================================# | ||
# SETUP # | ||
#==============================================================================# | ||
|
||
# Start in scripts/integration-tests/ even if run from root directory | ||
cd "$(dirname "$0")" || exit | ||
|
||
source utils/local-registry.sh | ||
source utils/cleanup.sh | ||
|
||
# Echo every command being executed | ||
set -x | ||
|
||
# Go to the root of the monorepo | ||
cd ../.. | ||
|
||
#==============================================================================# | ||
# TEST # | ||
#==============================================================================# | ||
|
||
startLocalRegistry "$PWD"/scripts/integration-tests/verdaccio-config.yml | ||
yarn upgrade --scope @babel | ||
|
||
# We use @babel/core 7.5.5 instead of 7.0.0 because without babel/babel#10208 | ||
# our @babel/standalone build fails. | ||
|
||
node -e "\ | ||
var pkg = require('./package.json');\ | ||
pkg.devDependencies['@babel/core'] = '7.5.5';\ | ||
Object.assign(pkg.resolutions, {\ | ||
'@babel/core': '7.5.5',\ | ||
'@babel/helpers': '7.5.5',\ | ||
'@babel/traverse': '7.0.0'\ | ||
});\ | ||
fs.writeFileSync('./package.json', JSON.stringify(pkg, null, 2));\ | ||
" | ||
|
||
rm yarn.lock | ||
make bootstrap | ||
|
||
# Test | ||
make test-ci | ||
|
||
cleanup |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Is
yarn upgrade
working again in our repo?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.
Oh ignore me, it doesn't work.According to the docs,yarn upgrade
doesn't modifypackage.json
if it's not needed, but it still updates the dependencies. You can see thatyarn.lock
changes after running this command.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 have replaced
yarn upgrade
by an ad-hoc script in #11021 due to yarnpkg/yarn#7797. I am not sure if that issue has been fixed or it affects onlyyarn upgrade-interactive
soyarn upgrade
is good.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.
It doesn't give problems here because we are not using yarn workspaces.
In yarn 2 it's probably fixed since it is a complete rewrite, but if it's not I can work around it in whichever of those two PRs (this one or yarn 2) gets merged last.