Skip to content

chore: hoist cli tools to root level #224

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

Merged
merged 7 commits into from
Jun 13, 2025
Merged

Conversation

lumirlumir
Copy link
Member

@lumirlumir lumirlumir commented Jun 9, 2025

Prerequisites checklist

What is the purpose of this pull request?

In this PR, I’ve hoisted CLI-related packages to the root level and bumped their versions to the latest. This is a follow-up to eslint/js#650.

The following packages have been hoisted:

  1. typescript
  2. mocha
  3. c8
  4. rollup

These packages are only used in CLI tools, so it would be safe to hoist them.

Some of the packages include major version updates, but the breaking changes are limited to updated Node.js version requirements, so it’s safe to upgrade them.

What changes did you make? (Give an overview)

I’ve hoisted CLI-related packages to the root level and bumped their versions to the latest.

The benefit of hoisting packages to the root level is well described in eslint/js#650

Related Issues

Reference: eslint/js#650

Is there anything you'd like reviewers to focus on?

@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Jun 9, 2025
@lumirlumir lumirlumir changed the title Chore move cli tools to root level chore: move cli tools to root level Jun 9, 2025
@eslint eslint deleted a comment from eslint-github-bot bot Jun 9, 2025
@lumirlumir lumirlumir changed the title chore: move cli tools to root level chore: hoist cli tools to root level Jun 9, 2025
@lumirlumir lumirlumir marked this pull request as ready for review June 9, 2025 06:53
"rollup": "^4.16.2",
"rollup-plugin-copy": "^3.5.0",
"typescript": "^5.4.5"
"rollup-plugin-copy": "^3.5.0"
Copy link
Member

Choose a reason for hiding this comment

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

Should we also move rollup-plugin-copy to the root? It's used in a bunch of the packages.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for your suggestion. However, unfortunately, if we remove rollup-plugin-copy from the devDependencies, it shows an ESLint error.

image

@lumirlumir lumirlumir requested a review from nzakas June 12, 2025 05:23
@lumirlumir lumirlumir moved this from Needs Triage to Implementing in Triage Jun 12, 2025
Copy link
Member

@nzakas nzakas left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@nzakas nzakas merged commit f5e6d68 into main Jun 13, 2025
21 checks passed
@nzakas nzakas deleted the chore-move-cli-tools-to-root-level branch June 13, 2025 14:13
@github-project-automation github-project-automation bot moved this from Implementing to Complete in Triage Jun 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

2 participants