Skip to content

nits: create-tanstack: Deploy script defaults to npm even when created with other package manager #292

@mmrakt

Description

@mmrakt

Which project does this relate to?

Start

Describe the bug

When scaffolding a new TanStack Start project using create @tanstack/start (via bun, pnpm, or yarn), the generated package.json contains a deploy script that hardcodes npm.

"deploy": "npm run build && wrangler deploy",  // Select Cloudflare for deployment adapter

Your Example Website or App

none

Steps to Reproduce the Bug or Issue

  1. Run one of the following commands:
    • bun create @tanstack/start
    • pnpm create @tanstack/start
    • yarn create @tanstack/start
  2. Select Cloudflare for the deployment adapter, and select defaults for all other items.
  3. Open package.json.
  4. Observe the deploy script.

Expected behavior

It should detect the package manager used and generate:
"deploy": "bun run build && ..."

Screenshots or Videos

No response

Platform

  • Start Version: [1.132.0]
  • OS: [macOS]
  • Bun version: [1.2.19]

Additional context

No response

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