Description
When running npx next-forge@latest init and selecting pnpm as the package
manager, the CLI correctly sets packageManager in root package.json and
creates pnpm-workspace.yaml, but the generated app-level scripts still
hardcode bun --bun.
Steps to reproduce
- Run
npx next-forge@latest init
- Select pnpm when prompted for package manager
- Check scripts in apps/app/package.json, apps/web/package.json, apps/api/package.json
Expected
Scripts should use next dev, next build, etc. (or the equivalent for
the selected package manager).
Actual
Scripts contain bun --bun next dev, bun --bun next build, etc.
Root package.json also has bunx and bun install in scripts.
Affected files
- apps/app/package.json
- apps/web/package.json
- apps/api/package.json
- root package.json (bunx → should be npx, bun install → should be pnpm install)
Workaround
Manually replace bun --bun next with next in all app scripts,
and bunx → npx, bun install → pnpm install in root scripts.
Version
next-forge v6.0.0 and v6.0.1
Description
When running
npx next-forge@latest initand selecting pnpm as the packagemanager, the CLI correctly sets
packageManagerin root package.json andcreates pnpm-workspace.yaml, but the generated app-level scripts still
hardcode
bun --bun.Steps to reproduce
npx next-forge@latest initExpected
Scripts should use
next dev,next build, etc. (or the equivalent forthe selected package manager).
Actual
Scripts contain
bun --bun next dev,bun --bun next build, etc.Root package.json also has
bunxandbun installin scripts.Affected files
Workaround
Manually replace
bun --bun nextwithnextin all app scripts,and
bunx→npx,bun install→pnpm installin root scripts.Version
next-forge v6.0.0 and v6.0.1