Skip to content

hono stack ignores chosen package manager — always scaffolds with npm #276

Description

@vipul674

Bug

Every stack path respects the user-selected package manager (nextSetup switches on config.packageManager, mernTailwindSetup/mevnTailwindAuthSetup use getInstallCommand(config.packageManager)), but HonoReactSetup() hardcodes npm:

execSync(`npm create hono@latest server -- --template cloudflare-workers --pm npm`, {

utils/installer.js:300

Reproduction

  1. celtrix create → stack hono, package manager pnpm (or bun/yarn)
  2. Observe the Hono scaffold runs npm create hono with --pm npm

Impact

  • Inconsistent with the rest of the CLI: the Vite client side respects the chosen package manager but the Hono server side does not.
  • --pm npm forces the generated Hono project to use npm even when the user explicitly selected another manager, producing a mixed package-lock.json/pnpm-lock.yaml project.

Suggested fix

Build the hono command using config.packageManager (e.g. pnpm create hono@latest / bunx --bun create-hono), mirroring the nextCommand() switch in nextSetup.

Environment

  • celtrix v3.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions