Skip to content

Commit

Permalink
fix: add missing include path ../../**/* in generated tsconfig.json (
Browse files Browse the repository at this point in the history
  • Loading branch information
didavid61202 authored May 9, 2022
1 parent 7aa56c1 commit 8978404
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ export async function writeTypes (nitro: Nitro) {
: {}
},
include: [
'./nitro.d.ts'
'./nitro.d.ts',
join(relative(join(nitro.options.buildDir, 'types'), nitro.options.rootDir), '**/*'),
...nitro.options.srcDir !== nitro.options.rootDir ? [join(relative(join(nitro.options.buildDir, 'types'), nitro.options.srcDir), '**/*')] : []
]
}
await writeFile(join(nitro.options.buildDir, 'types/tsconfig.json'), JSON.stringify(tsConfig, null, 2))
Expand Down

0 comments on commit 8978404

Please sign in to comment.