Nuxt/docs/content/2.guide/3.directory-structure/19.tsconfig.md
Clément Ollivier 9a0fc57724
docs: update sitemap (#4063)
Co-authored-by: Sébastien Chopin <seb@nuxtjs.com>
Co-authored-by: pooya parsa <pyapar@gmail.com>
2022-04-06 07:56:08 +02:00

834 B

icon title head.title
IconFile tsconfig.json TypeScript configuration file

TypeScript configuration file

Nuxt automatically generates a .nuxt/tsconfig.json file with the resolved aliases you are using in your Nuxt project, as well as with other sensible defaults. You can benefit from this by creating a tsconfig.json in the root of your project with the following content:

{
  "extends": "./.nuxt/tsconfig.json"
}

As you need to, you can customize the contents of this file. However, note that if you need to customize your paths, this will override the auto-generated path aliases. Instead, we recommend that you add any path aliases you need to the alias property within your nuxt.config, where they will get picked up and added to the autogenerated tsconfig.