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

Prepare to publish @babel/eslint-* packages #11894

Merged
merged 5 commits into from Jul 30, 2020
Merged

Conversation

JLHwung
Copy link
Contributor

@JLHwung JLHwung commented Jul 29, 2020

Q                       A
Fixed issue Closes #10709, resolves babel/babel-eslint#787
Any Dependency Changes? Bump node requirements of @babel/eslint-* packages.
License MIT

This PR includes preparations need to publish @babel/eslint-* packages. It includes commits in #11857, I will rebase once that PR gets merged.

Some noticeable changes compared to #11857:

  • Require node to be ^10.13.0 || ^12.13.0 || >=14.0.0. It covers only supported node versions as of July 2020
  • Disable submodule exports
  • Require babel to be >=7.11.0 since it is the Babel version that these packages are tested against

Note that @babel/eslint-shared-fixtures and @babel/eslint-tests are still private packages. I can not think of any use case of them and they looks to me more like a side-effect of sharing internal utils across different packages in a monorepo.

@JLHwung JLHwung added PR: Internal 🏠 A type of pull request used for our changelog categories area: eslint labels Jul 29, 2020
@JLHwung JLHwung added this to the 7.11.0 milestone Jul 29, 2020
@@ -15,12 +14,17 @@
},
"homepage": "https://babeljs.io/",
"engines": {
"node": ">=10.9"
"node": "^10.13.0 || ^12.13.0 || >=14.0.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I feel like we can enforce the same ranges for Babel 8: that we don't have to fight against early node v13 versions that may complain about incorrect exports usage.

@JLHwung JLHwung requested a review from kaicataldo July 29, 2020 23:11
This reverts commit 5ca8acd.

# Conflicts:
#	Makefile
#	eslint/babel-eslint-parser/package.json
#	eslint/babel-eslint-plugin-development/package.json
#	lerna.json
#	scripts/integration-tests/publish-local.sh
@@ -18,15 +18,12 @@
"author": "Kai Cataldo <kai@kaicataldo.com>",
"license": "MIT",
"private": true,
"engines": {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I removed the engines requirement here because its requirement can be implied from its peerDeps: @babel/eslint-parser.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 29, 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 b708c43:

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

@babel-bot
Copy link
Collaborator

babel-bot commented Jul 29, 2020

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

@@ -23,7 +23,7 @@
"./package.json": "./package.json"
},
"peerDependencies": {
"@babel/core": ">=7.11.0",
"@babel/core": ">=7.10.0",
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need to change this back to 7.10.0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Gotcha! So will we bump this when we do the 7.11.0 release?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think we still support 7.10? Maybe we should remove runtime peerDependencies checks, they should be addressed when installing packages.

@JLHwung JLHwung merged commit 4c9929c into babel:main Jul 30, 2020
@JLHwung JLHwung deleted the eslint-packages branch July 30, 2020 17:32
@kaicataldo
Copy link
Member

Oops, reviewed this after it was merged

@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 30, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: eslint outdated A closed issue/PR that is archived due to age. Recommended to make a new issue 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.

ESLint-related packages migration - TODO Release babel-eslint@11
5 participants