Skip to content

fix: allow @nuxt/cli v4 in peer dependencies - #809

Merged
danielroe merged 1 commit into
nuxt:mainfrom
benjamincanac:feat/nuxt-cli-v4-peer
Nov 10, 2026
Merged

danielroe merged 1 commit into
nuxt:mainfrom
benjamincanac:feat/nuxt-cli-v4-peer

Conversation

@benjamincanac

Copy link
Copy Markdown
Member

Projects on @nuxt/cli v4 get a second copy of v3 installed just to satisfy this peer, since nuxt itself now depends on v4.

This PR widens the peer range to ^3.37.0 || ^4.0.0. The prepare command only calls runCommand('prepare', ...), which works the same on v4 (checked with nuxt-module-build prepare in nuxt/ui). The dev dependency stays on v3 because v4 requires Node ^22.21.0, which is what makes #804 fail on test:engines and the build types.

@pkg-pr-new

pkg-pr-new Bot commented Nov 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@nuxt/module-builder@809

commit: 55e3bf2

@coderabbitai

coderabbitai Bot commented Nov 4, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The package metadata now accepts either ^3.37.0 or ^4.0.0 for the @nuxt/cli peer dependency.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Merge Risk: Minimal · up to 55e3b

The peer range update is compatible with both supported CLI versions and introduces no established merge-blocking risk.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: allowing @nuxt/cli v4 in peer dependencies.
Description check Passed The description explains why the peer dependency range changes and provides relevant compatibility details for @nuxt/cli v4.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share
Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 69a232ce-5328-40af-b13e-95499580a0ce
Commits

Reviewing files that changed from the base of the PR and between c1a6874 and 55e3bf2.

Files selected for processing: 1
  • package.json

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@danielroe danielroe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

❤️

@danielroe
danielroe merged commit f3779f8 into nuxt:main Nov 10, 2026
10 checks passed
This was referenced Sep 22, 2026
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.

2 participants