replace console with logger

This commit is contained in:
fgrreloaded
2025-02-12 14:29:19 +05:30
parent e998419ecd
commit 716fb8f61e
2 changed files with 12 additions and 12 deletions

View File

@@ -36,10 +36,10 @@ export async function createProject(options: ProjectOptions) {
await setupTurso(projectDir);
}
console.log("\n✨ Project created successfully!\n");
console.log("Next steps:");
console.log(` cd ${options.projectName}`);
console.log(" bun dev");
logger.success("\n✨ Project created successfully!\n");
logger.info("Next steps:");
logger.info(` cd ${options.projectName}`);
logger.info(" bun dev");
} catch (error) {
spinner.fail("Failed to create project");
logger.error("Error during project creation:", error);

View File

@@ -132,15 +132,15 @@ TURSO_AUTH_TOKEN=`;
await fs.writeFile(envPath, envContent);
console.log("\n📝 Manual Turso Setup Instructions:");
console.log("1. Visit https://turso.tech and create an account");
console.log("2. Create a new database from the dashboard");
console.log("3. Get your database URL and authentication token");
console.log(
logger.info("\n📝 Manual Turso Setup Instructions:");
logger.info("1. Visit https://turso.tech and create an account");
logger.info("2. Create a new database from the dashboard");
logger.info("3. Get your database URL and authentication token");
logger.info(
"4. Add these credentials to the .env file in your project root",
);
console.log("\nThe .env file has been created with placeholder variables:");
console.log("TURSO_DATABASE_URL=your_database_url");
console.log("TURSO_AUTH_TOKEN=your_auth_token");
logger.info("\nThe .env file has been created with placeholder variables:");
logger.info("TURSO_DATABASE_URL=your_database_url");
logger.info("TURSO_AUTH_TOKEN=your_auth_token");
}
}