|
1 | 1 | { |
2 | 2 | "compilerOptions": { |
3 | | - "jsx": "preserve", |
4 | 3 | /* Visit https://aka.ms/tsconfig to read more about this file */ |
5 | 4 |
|
6 | 5 | /* Projects */ |
|
14 | 13 | /* Language and Environment */ |
15 | 14 | "target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ |
16 | 15 | "lib": ["ESNext"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ |
17 | | - // "jsx": "preserve", /* Specify what JSX code is generated. */ |
| 16 | + "jsx": "react", /* Specify what JSX code is generated. */ |
18 | 17 | // "experimentalDecorators": true, /* Enable experimental support for TC39 stage 2 draft decorators. */ |
19 | 18 | // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ |
20 | 19 | // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */ |
|
49 | 48 | // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ |
50 | 49 |
|
51 | 50 | /* Emit */ |
52 | | - // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ |
| 51 | + "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ |
| 52 | + "declarationDir": "types", /* Specify the output directory for generated declaration files. */ |
53 | 53 | // "declarationMap": true, /* Create sourcemaps for d.ts files. */ |
54 | | - // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ |
55 | | - // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ |
| 54 | + "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ |
| 55 | + "sourceMap": true, /* Create source map files for emitted JavaScript files. */ |
56 | 56 | // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ |
57 | | - "outDir": "build", /* Specify an output folder for all emitted files. */ |
| 57 | + "outDir": "dist", /* Specify an output folder for all emitted files. */ |
58 | 58 | // "removeComments": true, /* Disable emitting comments. */ |
59 | 59 | // "noEmit": true, /* Disable emitting files from a compilation. */ |
60 | 60 | // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ |
|
75 | 75 |
|
76 | 76 | /* Interop Constraints */ |
77 | 77 | // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ |
78 | | - // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ |
| 78 | + "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ |
79 | 79 | "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ |
80 | 80 | // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ |
81 | 81 | "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ |
|
0 commit comments