Skip to content

Commit

Permalink
Normalize the path to the routes.d.ts file
Browse files Browse the repository at this point in the history
Using path.posix.relative is not an option because it returns the wrong path.
See:
* nodejs/node#13887
* nodejs/node#13738
  • Loading branch information
AngusMorton committed May 2, 2023
1 parent 8dc593d commit 785fd15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/run/src/vite/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default function markoRun(opts: Options = {}): Plugin[] {

const data = await renderRouteTypeInfo(
routes,
path.relative(typesDir, resolvedRoutesDir),
normalizePath(path.relative(typesDir, resolvedRoutesDir)),
adapter
);

Expand Down

0 comments on commit 785fd15

Please sign in to comment.