Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add project based tailwind config file generation #9

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
patch: update initial message and remove config overwrite step question
  • Loading branch information
rajdip-b committed Dec 17, 2023
commit c8efc84d726e240192bea1d791e71d693a1e0794
26 changes: 13 additions & 13 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -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,
});

@@ -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();