Skip to content

Commit

Permalink
patch: update initial message and remove config overwrite step question
Browse files Browse the repository at this point in the history
  • Loading branch information
rajdip-b committed Dec 17, 2023
1 parent c75d2af commit c8efc84
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async function main() {
type: "confirm",
name: "proceed",
message:
"Running this command will install dependencies and. Proceed?",
"Running this command will install dependencies and overwrite existing tailwind configurations. Proceed?",
initial: true,
});

Expand Down Expand Up @@ -97,18 +97,18 @@ async function main() {
const tailwindConfigFileExists = fs.existsSync(tailwindDestination);

// If the tailwind config file already exists, prompt the user to overwrite it
if (tailwindConfigFileExists) {
const { overwrite } = await prompts({
type: "confirm",
name: "overwrite",
message: `A ${tailwindConfigFileName} already exists. Overwrite it?`,
initial: false,
});

if (!overwrite) {
process.exit(0);
}
}
// if (tailwindConfigFileExists) {
// const { overwrite } = await prompts({
// type: "confirm",
// name: "overwrite",
// message: `A ${tailwindConfigFileName} already exists. Overwrite it?`,
// initial: false,
// });

// if (!overwrite) {
// process.exit(0);
// }
// }

// Write the tailwind config file
const tailwindSpinner = ora(`Configuring ${tailwindConfigFileName}...`).start();
Expand Down

0 comments on commit c8efc84

Please sign in to comment.