Draft
Conversation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR cleans up dependencies now that the repo targets Node.js 22+, replacing several third-party utilities with Node built-ins and updating lockfiles accordingly.
Changes:
- Replaced
glob/fast-globusage with Node’sfs.glob*APIs in configs and tests. - Removed
fs-extrafrom test tooling and updated filesystem helpers to usenode:fs/node:fs/promises. - Removed
minimistand switched git arg parsing tonode:util.parseArgs; removedimport-meta-resolveand updated module resolution logic.
Reviewed changes
Copilot reviewed 22 out of 23 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| yarn.lock | Removes transitive entries made unnecessary by dropping glob, fast-glob, fs-extra, minimist, import-meta-resolve. |
| @packages/test/src/npm.ts | Replaces fs-extra helpers with node:fs/promises equivalents for manifest detection, JSON reading, and directory creation. |
| @packages/test/src/index.test.ts | Switches from fs-extra to node:fs for sync existence checks. |
| @packages/test/src/fix.ts | Replaces fs-extra.copy with fs.cp (recursive). |
| @packages/test/package.json | Removes fs-extra and @types/fs-extra deps. |
| @commitlint/rules/src/index.test.ts | Replaces glob with node:fs globSync and manual filtering logic. |
| @commitlint/rules/package.json | Drops glob devDependency. |
| @commitlint/resolve-extends/src/index.ts | Removes import-meta-resolve and switches to createRequire(...).resolve(...) for resolution. |
| @commitlint/resolve-extends/package.json | Drops import-meta-resolve dependency. |
| @commitlint/read/src/read.ts | Replaces minimist with node:util.parseArgs for gitLogArgs. |
| @commitlint/read/package.json | Removes minimist and @types/minimist. |
| @commitlint/ensure/src/index.test.ts | Replaces glob with node:fs globSync and manual filtering logic. |
| @commitlint/ensure/package.json | Drops glob devDependency. |
| @commitlint/config-workspace-scopes/package.json | Removes glob dependency and related types. |
| @commitlint/config-workspace-scopes/index.js | Replaces glob usage with node:fs globSync. |
| @commitlint/config-pnpm-scopes/package.json | Drops fast-glob dependency. |
| @commitlint/config-pnpm-scopes/index.ts | Replaces fast-glob with node:fs/promises glob iteration. |
| @commitlint/config-patternplate/package.json | Drops glob dependency. |
| @commitlint/config-patternplate/index.js | Replaces glob package usage with node:fs/promises glob iteration. |
| @commitlint/config-lerna-scopes/package.json | Drops fast-glob dependency. |
| @commitlint/config-lerna-scopes/index.js | Replaces fast-glob with node:fs/promises glob iteration. |
| @commitlint/cli/src/cli.test.ts | Replaces fs-extra with node:fs/promises. |
| @commitlint/cli/package.json | Removes fs-extra from devDependencies. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This was referenced Apr 3, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.