chore: fix lint, wrong initial value
This commit is contained in:
parent
f4b5b3fbc4
commit
b46f4f75c8
|
|
@ -154,7 +154,13 @@ export async function promptForConfig(
|
|||
type: 'text',
|
||||
name: 'tailwindConfig',
|
||||
message: `Where is your ${highlight('tailwind.config')} located?`,
|
||||
initial: (prev, values) => defaultConfig?.tailwind.config ?? values.framework === 'astro' ? 'tailwind.config.mjs' : DEFAULT_TAILWIND_CONFIG,
|
||||
initial: (prev, values) => {
|
||||
if (defaultConfig?.tailwind.config)
|
||||
return defaultConfig?.tailwind.config
|
||||
if (values.framework === 'astro')
|
||||
return 'tailwind.config.mjs'
|
||||
else return DEFAULT_TAILWIND_CONFIG
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'text',
|
||||
|
|
|
|||
|
|
@ -7,8 +7,7 @@ export function cn(...inputs: ClassValue[]) {
|
|||
}
|
||||
`
|
||||
|
||||
export const TAILWIND_CONFIG = `
|
||||
const animate = require("tailwindcss-animate")
|
||||
export const TAILWIND_CONFIG = `const animate = require("tailwindcss-animate")
|
||||
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
module.exports = {
|
||||
|
|
@ -47,8 +46,7 @@ module.exports = {
|
|||
plugins: [animate],
|
||||
}`
|
||||
|
||||
export const TAILWIND_CONFIG_WITH_VARIABLES = `\n
|
||||
const animate = require("tailwindcss-animate")
|
||||
export const TAILWIND_CONFIG_WITH_VARIABLES = `const animate = require("tailwindcss-animate")
|
||||
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
module.exports = {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user