Skip to content

Comments

Fix minimatch module error in CLI linting#2

Open
chlewtf wants to merge 1 commit intomainfrom
fix-minimatch-error-7532197570832319574
Open

Fix minimatch module error in CLI linting#2
chlewtf wants to merge 1 commit intomainfrom
fix-minimatch-error-7532197570832319574

Conversation

@chlewtf
Copy link
Member

@chlewtf chlewtf commented Feb 22, 2026

Resolved the Cannot find module 'minimatch' error when running npm run lint.

The fix involves:

  1. Renaming the local shim in cli/minimatch-shim/ to @reshaped/minimatch-shim to prevent name conflicts.
  2. Explicitly adding the shim as a devDependency in cli/package.json.
  3. Configuring overrides for minimatch to point to the local shim.
  4. Pinning ansi-styles to 4.3.0 in overrides to ensure a clean and stable package-lock.json without out-of-scope dependency upgrades.
  5. Regenerating package-lock.json with minimal changes.

Tested and verified that linting and all unit tests pass.


PR created automatically by Jules for task 7532197570832319574 started by @chlewtf

Renamed the local minimatch shim to '@reshaped/minimatch-shim' to avoid
naming collisions with the official package. This ensures stable
resolution in npm environments.

Updated package.json to include the shim as a devDependency and refined
overrides to point directly to the shim. Also pinned 'ansi-styles' to
version 4.3.0 to maintain lockfile stability and prevent unrelated
breaking changes.

Verified with 'npm run lint' and 'npm run test'.

Co-authored-by: chlewtf <234900867+chlewtf@users.noreply.github.com>
@google-labs-jules
Copy link

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant