ReviewOS

also looking at this

craft-native/craft

fix(cli): validate scaffold templates before creating projects

#298
Merged glennmichael123 wants to merge codex/scaffold-template-validation into main
4 files +53 -7
10 days ago

Both scaffolding CLIs now validate template names before printing creation/success instructions or changing the filesystem. A typo in create-craft no longer leaves a directory that blocks the corrected retry; craft-sdk no longer exits successfully without generating a project. Both commands return a nonzero status and list supported templates.

Packed-consumer regression tests reproduce both original failures, assert no destination or misleading next steps remain, and immediately retry the corrected command successfully. All nine package tests, root typecheck, changed-file Pickier and diff checks pass. The new regressions run through the existing CI/release package test command.

Closes #278. Closes #285.

4 changed files on the files tab, with 0 review threads.

Sign in to comment on this pull request.