diff --git a/src/build.ts b/src/build.ts index 028b2dbf4c..e3f19cef6e 100644 --- a/src/build.ts +++ b/src/build.ts @@ -175,7 +175,7 @@ export async function writeTypes(nitro: Nitro) { ], }; await writeFile( - join(nitro.options.buildDir, nitro.options.typescript.tsconfigPath), + resolve(nitro.options.buildDir, nitro.options.typescript.tsconfigPath), JSON.stringify(tsConfig, null, 2) ); }