Skip to content

Commit 716fb8f

Browse files
committed
replace console with logger
1 parent e998419 commit 716fb8f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

apps/cli/src/create-project.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ export async function createProject(options: ProjectOptions) {
3636
await setupTurso(projectDir);
3737
}
3838

39-
console.log("\n✨ Project created successfully!\n");
40-
console.log("Next steps:");
41-
console.log(` cd ${options.projectName}`);
42-
console.log(" bun dev");
39+
logger.success("\n✨ Project created successfully!\n");
40+
logger.info("Next steps:");
41+
logger.info(` cd ${options.projectName}`);
42+
logger.info(" bun dev");
4343
} catch (error) {
4444
spinner.fail("Failed to create project");
4545
logger.error("Error during project creation:", error);

apps/cli/src/helpers/db-setup.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,15 +132,15 @@ TURSO_AUTH_TOKEN=`;
132132

133133
await fs.writeFile(envPath, envContent);
134134

135-
console.log("\n📝 Manual Turso Setup Instructions:");
136-
console.log("1. Visit https://turso.tech and create an account");
137-
console.log("2. Create a new database from the dashboard");
138-
console.log("3. Get your database URL and authentication token");
139-
console.log(
135+
logger.info("\n📝 Manual Turso Setup Instructions:");
136+
logger.info("1. Visit https://turso.tech and create an account");
137+
logger.info("2. Create a new database from the dashboard");
138+
logger.info("3. Get your database URL and authentication token");
139+
logger.info(
140140
"4. Add these credentials to the .env file in your project root",
141141
);
142-
console.log("\nThe .env file has been created with placeholder variables:");
143-
console.log("TURSO_DATABASE_URL=your_database_url");
144-
console.log("TURSO_AUTH_TOKEN=your_auth_token");
142+
logger.info("\nThe .env file has been created with placeholder variables:");
143+
logger.info("TURSO_DATABASE_URL=your_database_url");
144+
logger.info("TURSO_AUTH_TOKEN=your_auth_token");
145145
}
146146
}

0 commit comments

Comments
 (0)