|
1 | 1 | { |
2 | 2 | "compilerOptions": { |
3 | 3 | /* Basic Options */ |
4 | | - "target": "es5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */, |
5 | | - "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */, |
| 4 | + "target": "ES6" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */, |
| 5 | + "module": "ESNext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */, |
| 6 | + "moduleResolution": "node", /* Use Node.js-style module resolution for Webpack compatibility. */ |
6 | 7 | /* Crucial for library compatibility: */ |
7 | | - "skipLibCheck": true, |
| 8 | + // "skipLibCheck": true, // if true, Type errors in library .d.ts files will be ignored, so you might miss some issues. |
8 | 9 | "allowSyntheticDefaultImports": true, // Often helps with ESM interop |
9 | 10 | /* Crucial for library compatibility END */ |
10 | 11 | "lib": [ |
|
20 | 21 | "sourceMap": true /* Generates corresponding '.map' file. */, |
21 | 22 | // "outFile": "./", /* Concatenate and emit output to single file. */ |
22 | 23 |
|
23 | | - "outDir": "lib" /* Redirect output structure to the directory. */, |
| 24 | + "outDir": "dist" /* Redirect output structure to the directory. */, |
24 | 25 | "rootDir": "src/", |
25 | 26 |
|
26 | 27 | // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ |
|
75 | 76 | }, |
76 | 77 | "include": [ |
77 | 78 | "src/**/*" |
78 | | - ] |
| 79 | + ], |
| 80 | + "exclude": ["node_modules", "dist"] |
79 | 81 | } |
0 commit comments