-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
46 lines (45 loc) · 1.86 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{
"compilerOptions": {
"target": "esnext",
"module": "esnext", // output `import`/`export` ES modules
"lib": ["es2021"],
//"module": "CommonJS", // enables `import { InfluxDB } from 'influx'
"allowSyntheticDefaultImports": true, // allow default imports from modules with no default export. This does not affect code emit, just typechecking.
"moduleResolution": "node", // find modules in node_modules - https://github.com/Microsoft/TypeScript/issues/8189#issuecomment-212079251
"types": ["node"], // Influx uses built-in node modules like http or url
"sourceMap": true,
"esModuleInterop": true,
// "rootDir": "./",
"outDir": "./build",
"strict": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"isolatedModules": true /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */,
"skipLibCheck": true /* Skip type checking of declaration files. */,
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
"resolveJsonModule": true,
"baseUrl": ".",
"rootDir": "src",
"paths": {
"@/*": ["src/*"]
},
"plugins": [
{
"name": "gql.tada/ts-plugin",
"shouldCheckForColocatedFragments": false,
"schemas": [
{
"name": "kzen-db",
"schema": "./schema.graphql",
"tadaOutputLocation": "./src/graphql-env.d.ts"
}
]
}
]
// "verbatimModuleSyntax": true
// "target": "ES2021",
// "module": "commonjs"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "**/*.spec.ts", "build"]
}