mirror of
https://github.com/hanzo-docs/docs.git
synced 2026-10-26 23:49:51 +00:00
CLI: Fix windows problems
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'create-fumadocs-app': patch
|
||||
---
|
||||
|
||||
Fix windows problems
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user