mirror of
https://github.com/FranP-code/create-better-t-stack.git
synced 2025-10-12 23:52:15 +00:00
clear console on start
This commit is contained in:
5
.changeset/afraid-kids-occur.md
Normal file
5
.changeset/afraid-kids-occur.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"create-better-t-stack": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
clear console on start
|
||||||
@@ -54,7 +54,7 @@ async function gatherConfig(
|
|||||||
const response = await text({
|
const response = await text({
|
||||||
message: "📝 Project name",
|
message: "📝 Project name",
|
||||||
placeholder: defaultName,
|
placeholder: defaultName,
|
||||||
initialValue: flags.projectName || defaultName,
|
initialValue: flags.projectName,
|
||||||
defaultValue: defaultName,
|
defaultValue: defaultName,
|
||||||
validate: (value) => {
|
validate: (value) => {
|
||||||
const nameToUse = value.trim() || defaultName;
|
const nameToUse = value.trim() || defaultName;
|
||||||
@@ -189,6 +189,7 @@ async function gatherConfig(
|
|||||||
async function main() {
|
async function main() {
|
||||||
const s = spinner();
|
const s = spinner();
|
||||||
try {
|
try {
|
||||||
|
console.clear();
|
||||||
renderTitle();
|
renderTitle();
|
||||||
intro(chalk.bold("Creating a new Better-T Stack project"));
|
intro(chalk.bold("Creating a new Better-T Stack project"));
|
||||||
program
|
program
|
||||||
|
|||||||
Reference in New Issue
Block a user