NuxtN
Nuxt14mo ago
Titan

[solved] Add excludes to server tsconfig

how do I modify the
server/.tsconfig.json
config? I'm getting this warning and I need to exclude a folder to resolve it.

The root
~~/.tsconfig.json
I can modify in
nuxt.config.ts
with:

typescript: {
  strict: true,
  tsConfig: {
    exclude: ['../dist/**/*', '../app-native/**/*', '../wrangler/**/*', '../.husky/**/*', '../.git/**/*']
  }
},


But how do I modify tsConfig for the server to include the same folders? I was under the impression you can't just add
exclude:
to the tsconfig.json as it will overwrite the nuxt one, but let me know if that assumption is wrong.
SCR-20241029-imof.png
Was this page helpful?