Skip to content

Commit 938b83e

Browse files
authored
Merge pull request #231 from qwikerx/fix/cli-tw4
fix: cli with tw4
2 parents 34ec08a + 3fe6386 commit 938b83e

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

packages/cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flowbite-qwik-cli",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "This is a CLI tool to setup flowbite qwik into your project",
55
"main": "bin/init.cjs",
66
"bin": {

packages/cli/src/init.ts

+7-3
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ ${globalCssContent}
181181
}`,
182182
{
183183
singleQuote: true,
184-
parser: 'babel',
184+
parser: "css",
185185
},
186186
)
187187

@@ -232,8 +232,12 @@ async function installFlowbiteQwik(): Promise<void> {
232232
})
233233

234234
loader.start('Setup flowbite-qwik...')
235-
await addFlowbiteToGlobalCss()
236-
await addFlowbiteWrapper(colorTheme as string, toastPosition as string, useDarkTheme as boolean)
235+
try {
236+
await addFlowbiteToGlobalCss()
237+
await addFlowbiteWrapper(colorTheme as string, toastPosition as string, useDarkTheme as boolean)
238+
} catch (error) {
239+
console.log(error)
240+
}
237241
loader.stop('Flowbite Qwik configured! 🎉')
238242
}
239243

0 commit comments

Comments
 (0)