Skip to content
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

Update @babel/* deps #11899

Merged
merged 2 commits into from Aug 1, 2020
Merged

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Jul 31, 2020

Q                       A
Tests Added + Pass? Yes
Any Dependency Changes? @babel/* is updated
License MIT

In this PR we also removes extra install step for @babel/eslint-*.

We have run into issues during publish: Let's say we want to publish 7.12. After lerna version, running yarn install will request unpublished 7.12 @babel/* deps from eslint packages, although we can choose the published version 7.11 resolved as 7.12, it will incur changes on yarn.lock and thus the publish will fail because uncommitted yarn.lock file. See https://app.circleci.com/pipelines/github/babel/babel/3558/workflows/05ae840c-67c4-4312-9776-51f33f445325/jobs/26769 for the reproducing publish error.

I have replaced two eslint packages from link: to published version. Lerna should handle them properly. Two private eslint packages are reserved as link. It happens to work because they don't have dependencies.

Also simplified babel config by removing included plugins.

@JLHwung JLHwung added the PR: Internal 🏠 A type of pull request used for our changelog categories label Jul 31, 2020
@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 31, 2020

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 c3af30a:

Sandbox Source
babel-repl-custom-plugin Configuration
babel-plugin-multi-config Configuration

@babel-bot
Copy link
Collaborator

babel-bot commented Jul 31, 2020

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/26775/

@JLHwung JLHwung added this to the 7.11.1 milestone Jul 31, 2020
@JLHwung JLHwung force-pushed the use-published-version-eslint-parser branch from a41d317 to c3af30a Compare July 31, 2020 18:16
@@ -105,8 +105,6 @@ module.exports = function (api) {
// TODO: Use @babel/preset-flow when
// https://github.com/babel/babel/issues/7233 is fixed
"@babel/plugin-transform-flow-strip-types",
["@babel/proposal-class-properties", { loose: true }],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@@ -252,8 +252,6 @@ endif
bootstrap-only: lerna-bootstrap

yarn-install: clean-all
# Install dependencies in individual packages so that we can link them at the top level.
for package in eslint/*/; do yarn --ignore-engines --cwd $$package; done
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we still need this until Babel 8?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running yarn install in sub folders incurs changes to the yarn lock files after lerna version, lerna will abort publishing with uncommitted changes. See also the PR descriptions.

@JLHwung JLHwung merged commit ad60153 into babel:main Aug 1, 2020
@JLHwung JLHwung deleted the use-published-version-eslint-parser branch August 1, 2020 00:35
@github-actions github-actions bot added the outdated A closed issue/PR that is archived due to age. Recommended to make a new issue label Oct 31, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated A closed issue/PR that is archived due to age. Recommended to make a new issue PR: Fixes failing main PR: Internal 🏠 A type of pull request used for our changelog categories
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants