11{
22 "compilerOptions" : {
3+ "target" : " ESNext" ,
4+ "lib" : [
5+ " DOM" ,
6+ " ESNext"
7+ ],
8+ /*
9+ `bundler` allows resolving the new `exports`/`imports` syntax in the `package.json`
10+ But it doesn't enforce specifying files extensions for imports.
11+ @see https://www.typescriptlang.org/docs/handbook/modules/theory.html#module-resolution-is-host-defined
12+ */
13+ "module" : " ESNext" ,
14+ "moduleResolution" : " bundler" ,
15+ /* Linting */
316 "allowJs" : false ,
417 "allowSyntheticDefaultImports" : true ,
5- "baseUrl" : " ." ,
6- "declaration" : true ,
7- "declarationDir" : " dist" ,
8- "declarationMap" : true ,
918 "esModuleInterop" : true ,
1019 "forceConsistentCasingInFileNames" : true ,
1120 "isolatedModules" : true ,
21+ "resolveJsonModule" : true ,
22+ "skipLibCheck" : true ,
23+ "useDefineForClassFields" : true ,
24+ /* React */
1225 "jsx" : " react-jsx" ,
13- "lib" : [" DOM" , " DOM.Iterable" , " ESNext" ],
14- "module" : " ESNext" ,
15- "moduleResolution" : " bundler" ,
26+ /* Declarations, the `dts` plugin is used */
1627 "noEmit" : true ,
17- "outDir" : " dist" ,
28+ /* Aliases */
29+ "baseUrl" : " ." ,
1830 "paths" : {
19- "@recogito/react" : [" src/index.ts" ]
20- },
21- "resolveJsonModule" : true ,
22- "skipLibCheck" : true ,
23- "sourceMap" : true ,
24- "target" : " ESNext" ,
25- "useDefineForClassFields" : true
31+ "@recogito/react" : [
32+ " src/index.ts"
33+ ]
34+ }
2635 },
27- "include" : [" src" ],
28- "exclude" : [" node_modules" , " dist" ],
29- "references" : [{ "path" : " ./tsconfig.node.json" }],
30- }
36+ "include" : [
37+ " src"
38+ ],
39+ "exclude" : [
40+ " node_modules" ,
41+ " dist"
42+ ],
43+ "references" : [
44+ {
45+ "path" : " ./tsconfig.node.json"
46+ }
47+ ]
48+ }
0 commit comments