Skip to content

Commit d19964a

Browse files
[fix] #6842 - write_types does not work on windows (#6913)
actually fix write_types on windows
1 parent a5f9de0 commit d19964a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/cool-beans-only.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@sveltejs/kit": patch
3+
---
4+
5+
fix `write_types` on windows using posixify()

packages/kit/src/core/sync/write_types/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export async function write_types(config, manifest_data, file) {
6868
return;
6969
}
7070

71-
const id = path.posix.relative(config.kit.files.routes, path.dirname(file));
71+
const id = posixify(path.relative(config.kit.files.routes, path.dirname(file)));
7272

7373
const route = manifest_data.routes.find((route) => route.id === id);
7474
if (!route) return; // this shouldn't ever happen

0 commit comments

Comments
 (0)