|
4 | 4 |
|
5 | 5 | /* Basic Options */ |
6 | 6 | "target": "ESNEXT" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, |
7 | | - "module": "ESNext", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ |
| 7 | + "module": "CommonJS", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ |
8 | 8 | "declaration": true, /* Generates corresponding '.d.ts' file. */ |
9 | 9 | "outDir": "./lib/esm", /* Redirect output structure to the directory. */ |
| 10 | + "lib": ["dom", "esnext"], |
10 | 11 |
|
11 | | - /* Strict Type-Checking Options */ |
12 | | - "strict": true /* Enable all strict type-checking options. */, |
| 12 | + /* Type Checking Options */ |
| 13 | + "strict": true /* Enable all strict type-checking options. */, |
| 14 | + "noPropertyAccessFromIndexSignature": false, /* Allow access to an object's property with dot notation. */ |
13 | 15 |
|
14 | 16 | /* Module Resolution Options */ |
15 | 17 | "moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */, |
16 | 18 | "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */, |
17 | 19 |
|
| 20 | + /* Backwards Compatibility Options */ |
| 21 | + "suppressImplicitAnyIndexErrors": true, /* Suppress errors for accessing an object's property with dot notation. */ |
| 22 | + |
18 | 23 | /* Experimental Options */ |
19 | 24 | "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ |
20 | | - "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ |
| 25 | + "forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */ |
| 26 | + |
| 27 | + "baseUrl": "./src/", |
| 28 | + "paths": { |
| 29 | + "*": ["types/*", "node_modules/@types"] |
| 30 | + }, |
| 31 | + "importHelpers": true |
21 | 32 | }, |
22 | 33 | "include": ["src/"], |
23 | 34 | "exclude": ["node_modules"] |
|
0 commit comments