Skip to content

Navigation Menu

Sign in
Sign up

fix(git-changelog): declare vite peer dependency - #632

Open
xianzuyang9-blip wants to merge 2 commits into
nolebase:main from
xianzuyang9-blip:codex/vite-peer-git-changelog
Open

fix(git-changelog): declare vite peer dependency #632
xianzuyang9-blip wants to merge 2 commits into
nolebase:main from
xianzuyang9-blip:codex/vite-peer-git-changelog

Conversation

@xianzuyang9-blip

@xianzuyang9-blip xianzuyang9-blip commented Jun 9, 2026

Copy link
Copy Markdown

Fixes #617.

The git changelog package imports Vite from its published Vite entrypoint, including runtime normalizePath from vite. With VitePress 2 alpha, consumers can hit Cannot find package 'vite' when the plugin is installed without an explicit Vite dependency in the consuming project.

This adds vite as a peer dependency using the existing catalog version and syncs the lockfile importer entry.

Verification:

  • Confirmed packages/vitepress-plugin-git-changelog/src/vite/git.ts imports runtime normalizePath from vite.
  • Confirmed package metadata now declares peerDependencies.vite alongside vitepress.
  • pnpm install --lockfile-only --offline could not complete in my partial API checkout because the trimmed workspace did not include @nolebase/ui; no source or generated files were changed beyond package metadata/lock importer sync.

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

vitepress-plugin-git-changelog is missing an explicit dependency on vite

1 participant

AltStyle によって変換されたページ (->オリジナル) /