-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtsconfig.json
48 lines (40 loc) · 1.58 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
47
48
{
"compilerOptions": {
/**
* We're compiling 2 different bundles: ESM and CommonJS
*
* There are rules for the ESM compiling.
* They will be overridden by tsconfig-cjs.json for the CommonJS bundle
*/
"module": "esnext",
"outDir": "dist/mjs",
"target": "esnext",
/**
* Options below are the same for both bundles: ESM and CJS
* ----------------------------------------------------
*/
"allowJs": true, /* Allow javascript files to be compiled. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
"strict": true, /* Enable all strict type-checking options. */
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */
"baseUrl": ".", /* Base directory to resolve non-absolute module names. */
/**
* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'.
*/
"paths": {
"*": [
"./types/*"
]
},
"allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
},
"include": [
"src/**/*",
"index.ts"
],
"exclude": [
"node_modules",
"dist"
]
}