Skip to content

bun create: keep the template's package.json until the rewrite, and exit 1 when the rewrite fails - #46420

Closed
robobun wants to merge 1 commit into
mainfrom
robobun/c4d74760/create-keep-package-json
Closed

robobun wants to merge 1 commit into
mainfrom
robobun/c4d74760/create-keep-package-json

bun create: keep the template's package.json until the rewrite, and e…

450e9bd
Select commit
Loading
Failed to load commit list.
Claude / Claude Code Review completed Oct 22, 2026 in 13m 45s

Code review found 6 potential issues

Found 16 candidates, confirmed 6. See review comments for details.

The root REVIEW.md applied to this review uses 26,174 of the 150,000 bytes allowed for it and any files it includes.

Details

Severity Count
🔴 Important 0
🟡 Nit 4
🟣 Pre-existing 2
Severity File:Line Issue
🟡 Nit test/cli/install/bun-create.test.ts:365 nit: Developers whose /bin/sh is bash (Fedora, RHEL, Amazon Linux, Arch) get two new failing tests on Linux. bash counts
🟡 Nit src/runtime/cli/create_command.rs:880 Users whose template's package.json has a comment or trailing comma now get exit 1, no git repo, no install and no tasks
🟡 Nit src/runtime/cli/create_command.rs:603 Users whose package.json write fails during a remote create now get a half-extracted template and a message that blames
🟡 Nit src/runtime/cli/create_command.rs:1044 Users whose disk fills during the final package.json rewrite now get a file holding the start of the new text followed b
🟣 Pre-existing src/runtime/cli/create_command.rs:783 pre-existing: a local template whose package.json cannot be opened, stat'ed or read still ends with exit 0, while the wr
🟣 Pre-existing src/runtime/cli/create_command.rs:1041 On a filesystem whose pwrite can return 0 for a non-empty buffer (FUSE, some network mounts), users get a package.json p