Skip to content

Commit

Permalink
fix: use relative type path to nitro #internal/nitro
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Aug 15, 2023
1 parent b8b834f commit 5ae5b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export async function writeTypes(nitro: Nitro) {
// TODO: fully resolve utils exported from `#imports`
autoImportExports = await nitro.unimport
.toExports(typesDir)
.then((r) => r.replace(/#internal\/nitro/g, runtimeDir));
.then((r) => r.replace(/#internal\/nitro/g, relative(typesDir, runtimeDir)));

const resolvedImportPathMap = new Map<string, string>();
const imports = await nitro.unimport
Expand Down

0 comments on commit 5ae5b65

Please sign in to comment.