clear console on start

This commit is contained in:
Aman Varshney
2025-02-13 23:23:24 +05:30
parent cc65b33aba
commit 92d2443825
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
"create-better-t-stack": patch
---
clear console on start

View File

@@ -54,7 +54,7 @@ async function gatherConfig(
const response = await text({
message: "📝 Project name",
placeholder: defaultName,
initialValue: flags.projectName || defaultName,
initialValue: flags.projectName,
defaultValue: defaultName,
validate: (value) => {
const nameToUse = value.trim() || defaultName;
@@ -189,6 +189,7 @@ async function gatherConfig(
async function main() {
const s = spinner();
try {
console.clear();
renderTitle();
intro(chalk.bold("Creating a new Better-T Stack project"));
program