File tree 2 files changed +7
-2
lines changed
packages/ui/src/cli/commands
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " flowbite-react " : patch
3
+ ---
4
+
5
+ fix(ui~ cli): ` patch ` command windows support
Original file line number Diff line number Diff line change @@ -22,14 +22,14 @@ export async function patchTailwind(): Promise<void> {
22
22
tailwindModulePath = require . resolve ( "tailwindcss/package.json" , {
23
23
paths : [ process . cwd ( ) ] ,
24
24
} ) ;
25
- tailwindPath = path . dirname ( tailwindModulePath ) ;
25
+ tailwindPath = path . resolve ( path . dirname ( tailwindModulePath ) ) ;
26
26
} else {
27
27
const { createRequire } = await import ( "module" ) ;
28
28
const require = createRequire ( import . meta. url ) ;
29
29
tailwindModulePath = require . resolve ( "tailwindcss/package.json" , {
30
30
paths : [ process . cwd ( ) ] ,
31
31
} ) ;
32
- tailwindPath = path . dirname ( tailwindModulePath ) ;
32
+ tailwindPath = path . resolve ( path . dirname ( tailwindModulePath ) ) ;
33
33
}
34
34
} catch {
35
35
console . warn ( "Could not resolve Tailwind CSS module path. Skipping version patch." ) ;
You can’t perform that action at this time.
0 commit comments