mirror of
https://github.com/cloudflare/vinext.git
synced 2026-05-09 08:25:34 +02:00
[GH-ISSUE #169] bug: Vinext init ignores existing package manager and defaults to npm #39
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#39
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?
Originally created by @Zaid-maker on GitHub (Feb 27, 2026).
Original GitHub issue: https://github.com/cloudflare/vinext/issues/169
When migrating an existing Next.js project to Vinext using
vinext init, the CLI does not auto-detect the package manager being used in the project.For example, I use Bun for better performance, and I run
vinext initinside a Bun-based project. However, after the compatibility check, Vinext installs dependencies using npm under the hood instead of the project’s existing package manager.This causes significantly slower dependency installation and breaks the expected workflow. Vinext should automatically detect the package manager based on:
bun.lockb,pnpm-lock.yaml,yarn.lock,package-lock.json)bunx vinext init)packageManagerfield inpackage.jsonExpected behavior:
Vinext should respect and use the project's existing package manager (e.g., Bun) instead of defaulting to npm.
@threepointone commented on GitHub (Feb 27, 2026):
this is fixed in main, should go out in the next release, thanks for flagging
@Zaid-maker commented on GitHub (Feb 28, 2026):
Thank you so much!