GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — vp migrate rewrites catalog: specs in a Bun project whose workspaces.packages is empty · Issue #3375 · voidzero-dev/vite-plus

vp migrate rewrites catalog: specs in a Bun project whose workspaces.packages is empty #3375

New issue
Copy link
New issue
Copy link
Closed
Bug
#3397
Closed
vp migrate rewrites catalog: specs in a Bun project whose workspaces.packages is empty#3375
Bug
#3397
Copy link
Assignees
jong-kyung
Labels
bugSomething isn't workingmigrationVite+ migration related issues

Description

@everton-dgn
everton-dgn
opened on Nov 7, 2026
Issue body actions

Describe the bug

In a single-package Bun project that keeps its toolchain in workspaces.catalog with an empty workspaces.packages array, vp migrate handles the project as if it had no catalog support. It replaces every catalog: reference in devDependencies, and the catalog-valued entries in overrides, with concrete versions. workspaces.catalog stays in package.json, but nothing references it anymore.

Bun resolves this setup: bun install succeeds and vite resolves to @voidzero-dev/vite-plus-core. Bun only needs the root package.json to have a workspaces field; without one it fails with catalogs require a "workspaces" field in the root package.json. "workspaces": [] and "workspaces": { "packages": [] } both work.

The check that rejects this setup is bunWorkspaceDeclaresPackages() in packages/cli/src/migration/migrator/vite-plus-bootstrap.ts, which requires a non-empty package list. The comment above it says Bun resolves catalog: references only inside a workspace whose root package.json declares a non-empty workspaces. Bun 1.4.4 does not behave that way.

Reproduction

package.json:

{
  "name": "bun-root-catalog",
  "private": true,
  "type": "module",
  "packageManager": "[email protected]",
  "devDependencies": {
    "@vitest/coverage-v8": "catalog:",
    "vite": "catalog:",
    "vite-plus": "catalog:",
    "vitest": "catalog:"
  },
  "workspaces": {
    "packages": [],
    "catalog": {
      "@vitest/coverage-v8": "5.1.0",
      "vite": "npm:@voidzero-dev/[email protected]",
      "vite-plus": "1.5.0",
      "vitest": "5.1.0"
    }
  },
  "overrides": {
    "vite": "catalog:",
    "vitest": "catalog:"
  }
}
printf 'node_modules\n' > .gitignore
bun install
git init && git add -A && git commit -m init
vp migrate --no-interactive --no-hooks --no-agent --no-editor
git diff package.json

Actual: bun install succeeds before the migration. Afterwards devDependencies become "@vitest/coverage-v8": "5.1.0", "vite": "npm:@voidzero-dev/[email protected]", "vite-plus": "1.5.0" and "vitest": "5.1.0", and overrides become "vite": "npm:@voidzero-dev/[email protected]" and "vitest": "5.1.0". The catalog is left unused.

Expected: no changes. With only "packages": [] changed to "packages": ["packages/*"], and no packages directory at all, the same command prints This project is already using Vite+! Happy coding! and leaves package.json as it is.

Suggested fix

For Bun, treat any root workspaces field (array or object form) as catalog support, which matches the check Bun itself applies, instead of requiring a non-empty package list.

Environment

  • vite-plus 1.5.0 (global and local)
  • Bun 1.4.4
  • Node 26.13.0
  • macOS arm64

Related, but different: #1247 (object-form workspaces, fixed in #1250) and #2309 (vp up rewriting catalog: specs in a monorepo). I have not checked Bun versions older than 1.4.4.

Activity

  1. voidzero-bot commented on Nov 7, 2026

    @voidzero-bot
    voidzero-botBot
    on Nov 7, 2026
    Contributor
    More actions

    Triage failed unexpectedly (attempt 1 of 3).

    Run: https://github.com/voidzero-dev/vite-plus/actions/runs/42334573160

    I can retry if a new comment provides more information or asks me to try again.

    Error:

    [flue] skill("triage") failed: 401 status code (no body)
    
  2. voidzero-bot
    added
    triage: failed
    on Nov 7, 2026
  3. jong-kyung
    added the
    Bug
    issue type on Nov 7, 2026
  4. jong-kyung
    added
    pending triage
    migrationVite+ migration related issues
    on Nov 7, 2026
  5. everton-dgn commented on Nov 7, 2026

    @everton-dgn
    everton-dgn
    on Nov 7, 2026 – with ChatGPT Codex Connector
    ContributorAuthor
    More actions

    Please retry triage for this issue. The previous run (https://github.com/voidzero-dev/vite-plus/actions/runs/42334573160) failed with [flue] skill("triage") failed: 401 status code (no body) after the setup and GitHub App token generation steps had succeeded. The issue includes a complete reproduction, so this appears to be a triage bot/provider authentication failure rather than a problem with the report. If it fails again, the bot's provider credentials or permissions likely need maintainer attention.

    Reacted by Liang and JongKyung Lee
  6. jong-kyung
    self-assigned this
    on Nov 9, 2026
  7. jong-kyung
    added
    bugSomething isn't working
    and removed
    pending triage
    triage: failed
    on Nov 9, 2026
  8. fengmk2
    added a commit that references this issue on Nov 10, 2026

    fix(migrate): keep migrated toolchain specs resolvable and aligned (#…

    This issue will close once commit f2ec4c5 is merged into the 'main' branch.
    f2ec4c5
  9. fengmk2
    closed this as completedin #3397on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @jong-kyung
    jong-kyung

Labels

bugSomething isn't workingmigrationVite+ migration related issues

Type

Bug

Fields

Priority

None yet

Effort

None yet

Target date

None yet

Start date

None yet

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.