mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[PR #187] [MERGED] fix: use detected package manager in install error/hint messages #374
Labels
No labels
enhancement
enhancement
good first issue
help wanted
nextjs-tracking
nextjs-tracking
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vinext#374
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/cloudflare/vinext/pull/187
Author: @justinfinnn
Created: 2/28/2026
Status: ✅ Merged
Merged: 3/3/2026
Merged by: @southpolesteve
Base:
main← Head:fix/use-detected-package-manager-in-error-messages📝 Commits (2)
95513d8fix: use detected package manager in error/hint messages84e4670fix: use detectPackageManager() in cli.ts per review feedback📊 Changes
3 files changed (+10 additions, -8 deletions)
View changed files
📝
packages/vinext/src/check.ts(+2 -1)📝
packages/vinext/src/cli.ts(+4 -4)📝
packages/vinext/src/index.ts(+4 -3)📄 Description
Problem
Error messages and install hints in
index.ts,check.ts, andcli.tswere hardcoded to usenpm install, even when the project uses Yarn, pnpm, or Bun.For example, on a Yarn workspace project:
Solution
Use the existing
detectPackageManager()anddetectPackageManagerName()utilities fromutils/project.ts— which already correctly detect the package manager from lockfiles and are already used indeploy.ts.After this fix (on a Yarn project):
Changes
src/index.ts— 3 error/warning messages:@vitejs/plugin-rscnot installed (×2),@mdx-js/rollupnot installedsrc/check.ts— install hint shown to users duringvinext checksrc/cli.ts— eslint/oxlint install suggestionsRelated
Closes #186
Relates to #109
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.