# What is the tsconfig.json file for?

**URL:** <https://discuss.elastic.co/t/what-is-the-tsconfig-json-file-for/312446>\
**Category:** Kibana\
**Tags:** kibana-plugin-development\
**Created:** [August 19, 2022, 8:33am UTC](https://discuss.elastic.co/t/what-is-the-tsconfig-json-file-for/312446 "2022-08-19T08:33:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sheereen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sheereen/32/122005_2.png) [@Sheereen](https://discuss.elastic.co/u/Sheereen)\
**Post date:** [August 19, 2022, 8:33am UTC](https://discuss.elastic.co/t/what-is-the-tsconfig-json-file-for/312446/1 "2022-08-19T08:33:32Z")

</div>

The below is the tsconfig.json file that comes by default when creating a plugin using kibana plugin generator.

What is this file for?

The below are the contents in the same.

```auto

{
  "extends": "../../tsconfig.json",
  "compilerOptions": {
    "outDir": "./target/types",
  },
  "include": [
    "index.ts",
    "common/**/*.ts",
    "public/**/*.ts",
    "public/**/*.tsx",
    "server/**/*.ts",
    "../../typings/**/*"
  ],
  "exclude": [],
  "references": [
    { "path": "../../src/core/tsconfig.json" }
  ]
}

```

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [September 7, 2022, 4:39pm UTC](https://discuss.elastic.co/t/what-is-the-tsconfig-json-file-for/312446/2 "2022-09-07T16:39:02Z")

</div>

It is just the standard file for TypeScript project definitions. Without it the `tsc` compiler and your IDE would not understand your code to help with your types, where code is located, etc.

> **[Documentation - What is a tsconfig.json](https://www.typescriptlang.org/docs/handbook/tsconfig-json.html)**
>
> Learn about how a TSConfig works

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 5, 2022, 4:39pm UTC](https://discuss.elastic.co/t/what-is-the-tsconfig-json-file-for/312446/3 "2022-10-05T16:39:08Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
