|
6 | 6 | // "incremental": true, /* Enable incremental compilation */ |
7 | 7 | "target": "es2015" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', 'ES2021', or 'ESNEXT'. */, |
8 | 8 | "module": "es2015" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */, |
9 | | - // "lib": [], /* Specify library files to be included in the compilation. */ |
| 9 | + "lib": ["es2015", "dom"] /* Specify library files to be included in the compilation. */, |
10 | 10 | // "allowJs": true, /* Allow javascript files to be compiled. */ |
11 | 11 | // "checkJs": true, /* Report errors in .js files. */ |
12 | 12 | "jsx": "react" /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */, |
13 | 13 | "declaration": true /* Generates corresponding '.d.ts' file. */, |
14 | | - "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ |
15 | | - "sourceMap": true, /* Generates corresponding '.map' file. */ |
| 14 | + "declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */, |
| 15 | + "sourceMap": true /* Generates corresponding '.map' file. */, |
16 | 16 | // "outFile": "./", /* Concatenate and emit output to single file. */ |
17 | 17 | "outDir": "./dist/esm" /* Redirect output structure to the directory. */, |
18 | 18 | "rootDir": "./src" /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */, |
19 | | - "composite": true, /* Enable project compilation */ |
20 | | - // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ |
| 19 | + "composite": true /* Enable project compilation */, |
| 20 | + "tsBuildInfoFile": "./dist/esm.tsbuildinfo", /* Specify file to store incremental compilation information */ |
21 | 21 | // "removeComments": true, /* Do not emit comments to output. */ |
22 | 22 | // "noEmit": true, /* Do not emit outputs. */ |
23 | | - "importHelpers": true, /* Import emit helpers from 'tslib'. */ |
| 23 | + "importHelpers": true /* Import emit helpers from 'tslib'. */, |
24 | 24 | // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ |
25 | | - "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ |
| 25 | + "isolatedModules": true /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */, |
26 | 26 |
|
27 | 27 | /* Strict Type-Checking Options */ |
28 | 28 | "strict": true /* Enable all strict type-checking options. */, |
29 | 29 | // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ |
30 | | - "strictNullChecks": false, /* Enable strict null checks. */ |
| 30 | + "strictNullChecks": false /* Enable strict null checks. */, |
31 | 31 | // "strictFunctionTypes": true, /* Enable strict checking of function types. */ |
32 | 32 | // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ |
33 | 33 | // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ |
|
68 | 68 | /* Advanced Options */ |
69 | 69 | "skipLibCheck": true /* Skip type checking of declaration files. */, |
70 | 70 | "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */, |
71 | | - "plugins": [ |
72 | | - { "transform": "transformer-cjs-imports" } |
73 | | - ] |
| 71 | + "plugins": [{ "transform": "transformer-cjs-imports" }], |
| 72 | + "assumeChangesOnlyAffectDirectDependencies": true |
74 | 73 | }, |
75 | 74 | "include": ["./src/*", "./src/**/*"], |
76 | | - "exclude": [ |
77 | | - "**/**.test.tsx", |
78 | | - "**/**.test.ts", |
79 | | - "**/examples/**", |
80 | | - "**/__mocks__/**" |
81 | | - ] |
| 75 | + "exclude": ["**/**.test.tsx", "**/**.test.ts", "**/examples/**", "**/__mocks__/**"] |
82 | 76 | } |
0 commit comments