Skip to content

Commit

Permalink
fix(nuxt): Create declaration files for Nuxt module (#13909)
Browse files Browse the repository at this point in the history
[Nuxt module builder](https://github.com/nuxt/module-builder) uses the
closest `tsconfig.json` and this had `"declaration": false`. I added
another `tsconfig.json` closer to the module to generate those
declarations.

fixes #13899
  • Loading branch information
s1gr1d authored Oct 8, 2024
1 parent 067ad93 commit 8b1b64c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/nuxt/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../tsconfig.json",

"compilerOptions": {
// nuxt-module-build uses the closest `tsconfig.json` to build the Nuxt module declarations
"declaration": true,
}
}

0 comments on commit 8b1b64c

Please sign in to comment.