Skip to content

Commit eaa9890

Browse files
authored
fix(cli): normalize windows paths for fast-glob (#184)
1 parent 9346e60 commit eaa9890

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/template/uno.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export default defineConfig({
2323
...unoCSSConfig,
2424
content: {
2525
inline: globSync([
26-
`${convertPathToPattern(join(require.resolve('@tutorialkit/components-react'), '..'))}/**/*.js`,
27-
`${convertPathToPattern(join(require.resolve('@tutorialkit/astro'), '..'))}/default/**/*.astro`,
26+
`${convertPathToPattern(join(require.resolve('@tutorialkit/components-react'), '..')).replace('\\@', '/@')}/**/*.js`,
27+
`${convertPathToPattern(join(require.resolve('@tutorialkit/astro'), '..')).replace('\\@', '/@')}/default/**/*.astro`,
2828
]).map((filePath) => {
2929
return () => fs.readFile(filePath, { encoding: 'utf8' });
3030
}),

0 commit comments

Comments
 (0)