fix commander init

This commit is contained in:
Aman Varshney
2025-03-05 13:51:24 +05:30
parent 8e631d95ef
commit 48efa59878
2 changed files with 35 additions and 29 deletions

View File

@@ -0,0 +1,5 @@
---
"create-better-t-stack": patch
---
fix commander init

View File

@@ -19,11 +19,6 @@ process.on("SIGINT", () => {
const program = new Command(); const program = new Command();
async function main() { async function main() {
const s = spinner();
try {
renderTitle();
intro(pc.magenta("Creating a new Better-T-Stack project"));
program program
.name("create-better-t-stack") .name("create-better-t-stack")
.description("Create a new Better-T Stack project") .description("Create a new Better-T Stack project")
@@ -53,6 +48,12 @@ async function main() {
.option("--no-turso", "Skip Turso setup for SQLite database") .option("--no-turso", "Skip Turso setup for SQLite database")
.parse(); .parse();
const s = spinner();
try {
renderTitle();
intro(pc.magenta("Creating a new Better-T-Stack project"));
const options = program.opts(); const options = program.opts();
const projectDirectory = program.args[0]; const projectDirectory = program.args[0];