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',
|
type: 'text',
|
||||||
name: 'tailwindConfig',
|
name: 'tailwindConfig',
|
||||||
message: `Where is your ${highlight('tailwind.config')} located?`,
|
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',
|
type: 'text',
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,7 @@ export function cn(...inputs: ClassValue[]) {
|
||||||
}
|
}
|
||||||
`
|
`
|
||||||
|
|
||||||
export const TAILWIND_CONFIG = `
|
export const TAILWIND_CONFIG = `const animate = require("tailwindcss-animate")
|
||||||
const animate = require("tailwindcss-animate")
|
|
||||||
|
|
||||||
/** @type {import('tailwindcss').Config} */
|
/** @type {import('tailwindcss').Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
@ -47,8 +46,7 @@ module.exports = {
|
||||||
plugins: [animate],
|
plugins: [animate],
|
||||||
}`
|
}`
|
||||||
|
|
||||||
export const TAILWIND_CONFIG_WITH_VARIABLES = `\n
|
export const TAILWIND_CONFIG_WITH_VARIABLES = `const animate = require("tailwindcss-animate")
|
||||||
const animate = require("tailwindcss-animate")
|
|
||||||
|
|
||||||
/** @type {import('tailwindcss').Config} */
|
/** @type {import('tailwindcss').Config} */
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user