Skip to content

Commit 82ed1a1

Browse files
authored
fix: Normalize the path to the routes.d.ts file (#23)
Using path.posix.relative is not an option because it returns the wrong path. See: * nodejs/node#13887 * nodejs/node#13738
1 parent 8dc593d commit 82ed1a1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/run/src/vite/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export default function markoRun(opts: Options = {}): Plugin[] {
114114

115115
const data = await renderRouteTypeInfo(
116116
routes,
117-
path.relative(typesDir, resolvedRoutesDir),
117+
normalizePath(path.relative(typesDir, resolvedRoutesDir)),
118118
adapter
119119
);
120120

0 commit comments

Comments
 (0)