Skip to content

Commit a68e86e

Browse files
committed
Update config
1 parent f2e20a7 commit a68e86e

File tree

1 file changed

+22
-29
lines changed

1 file changed

+22
-29
lines changed

tsconfig.json

Lines changed: 22 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,29 @@
11
{
22
"compilerOptions": {
3-
/* Visit https://aka.ms/tsconfig.json to read more about this file */
4-
5-
/* Basic Options */
6-
"target": "ES2020", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
7-
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
8-
"lib": ["WebWorker","es6", "es2019"], /* Specify library files to be included in the compilation. */
9-
"typeRoots": ["node_modules/@types"],
10-
"outDir": "dist", /* Redirect output structure to the directory. */
11-
"rootDir": ".", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */
12-
"removeComments": true, /* Do not emit comments to output. */
13-
14-
"declaration": true, /* Ensure that .d.ts files are created by tsc, but not .js files */
3+
"target": "ES2020",
4+
"module": "commonjs",
5+
"typeRoots": [
6+
"node_modules/@types"
7+
],
8+
"types": [
9+
"node",
10+
"jest"
11+
],
12+
"outDir": "./dist",
13+
"removeComments": true,
14+
"declaration": true,
1515
"emitDeclarationOnly": true,
16-
"isolatedModules": false, /* Ensure that Babel can safely transpile files in the TypeScript project */
17-
18-
/* Strict Type-Checking Options */
19-
"strict": true, /* Enable all strict type-checking options. */
20-
"strictNullChecks": true, /* Enable strict null checks. */
21-
"strictFunctionTypes": true, /* Enable strict checking of function types. */
22-
23-
/* Module Resolution Options */
24-
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
25-
"skipLibCheck": true, /* Skip type checking of declaration files. */
26-
"forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */
27-
"types": ["node", "jest"]
16+
"strict": true,
17+
"strictNullChecks": true,
18+
"strictFunctionTypes": true,
19+
"skipLibCheck": true,
20+
"forceConsistentCasingInFileNames": true
2821
},
2922
"exclude": [
30-
"/node_modules/",
31-
"tests/**/*",
32-
],
33-
"include": [
34-
"src/**/*"
23+
"node_modules",
24+
"jest.config.ts",
25+
"test*/*",
26+
"dist",
27+
"**/*spec.ts"
3528
]
3629
}

0 commit comments

Comments
 (0)