fix: remove redundant project name prompt from create-mochi#44
Conversation
Derive the package.json name from the directory basename instead of prompting interactively. The prompt defaulted to the folder name anyway and was an unnecessary extra step.
Mochi review reportTry this PRExpand instructionsgh run download -R khromov/mochi 26420071449 -n mochi-framework-pr -D /tmp/mochi-pr && bun i /tmp/mochi-pr/mochi-framework-pr.tgzLines of code (non-blank lines) packages/mochi
Unchanged: packages/docs
Unchanged: packages/site
Unchanged: packages/demos
Unchanged: packages/minimal
Unchanged: packages/cli
Unchanged: |
🤖 I have created a release *beep* *boop* --- <details><summary>mochi-framework: 0.4.0</summary> ## [0.4.0](mochi-framework-v0.3.2...mochi-framework-v0.4.0) (2026-05-26) ### Features * make url export isomorphic (server + client) ([#47](#47)) ([11bbbe6](11bbbe6)) * per-page JS bundle panel in debug bar ([#42](#42)) ([7eba984](7eba984)) ### Bug Fixes * resolve Svelte 5 state warnings and add autofixer tooling ([#49](#49)) ([3d949a5](3d949a5)) ### Performance * consolidate per-request HTML passes in renderComponent ([#36](#36)) ([285a87f](285a87f)) * reduce server island runtime by ~80% (8.59kB → 1.91kB ) ([#50](#50)) ([d570bc8](d570bc8)) </details> <details><summary>create-mochi: 0.2.3</summary> ## [0.2.3](create-mochi-v0.2.2...create-mochi-v0.2.3) (2026-05-26) ### Bug Fixes * remove redundant project name prompt from create-mochi ([#44](#44)) ([dfa3c95](dfa3c95)) </details> --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Summary
create-mochipackage.jsonname is now derived from the directory basename automatically (via the existingdefaultNameFor()helper, which falls back tomochi-appif the basename isn't a valid npm name)--nameCLI flag since it's no longer neededTest plan
bun run typecheckpassesbun run formatcleanbunx create-mochi ./test-proj— should skip the name prompt and scaffold with"name": "test-proj"inpackage.json