CLI: Fix windows problems

This commit is contained in:
Fuma Nama
2025-02-13 17:11:30 +08:00
parent 30f1711ec1
commit b3c0ee8196
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'create-fumadocs-app': patch
---
Fix windows problems
+1 -1
View File
@@ -41,7 +41,7 @@ export async function create(options: Options): Promise<void> {
for (const dir of ['app', 'lib']) {
const relative = path.relative(path.join(dest, dir), file);
if (!relative.startsWith('../')) {
if (!relative.startsWith(`..${path.sep}`)) {
return path.join(dest, 'src', dir, relative);
}
}