|
2 | 2 | "include": ["src"], |
3 | 3 | "exclude": ["dist", ".rollup.cache", "src/test/test.d.ts"], |
4 | 4 | "compilerOptions": { |
5 | | - "tsBuildInfoFile": "local.tsbuildinfo", |
6 | 5 | "outDir": "dist", |
7 | | - /* Visit https://aka.ms/tsconfig.json to read more about this file */ |
| 6 | + "declaration": true, |
| 7 | + "emitDeclarationOnly": true, |
8 | 8 |
|
9 | | - /* Basic Options */ |
10 | | - "incremental": true /* Enable incremental compilation */, |
11 | | - "target": "ES5" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, |
12 | | - "module": "ESNext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */, |
13 | | - "lib": ["ES2021", "DOM"] /* Specify library files to be included in the compilation. */, |
14 | | - // "allowJs": true, /* Allow javascript files to be compiled. */ |
15 | | - // "checkJs": true, /* Report errors in .js files. */ |
16 | | - "jsx": "react" /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */, |
17 | | - "declaration": true /* Generates corresponding '.d.ts' file. */, |
18 | | - // "declarationDir": ".", |
19 | | - // "declarationMap": true /* Generates a sourcemap for each corresponding '.d.ts' file. */, |
20 | | - // "sourceMap": true, /* Generates corresponding '.map' file. */ |
21 | | - // "outFile": "./", /* Concatenate and emit output to single file. */ |
22 | | - // "outDir": "./", /* Redirect output structure to the directory. */ |
23 | | - // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ |
24 | | - // "composite": true, /* Enable project compilation */ |
25 | | - // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ |
26 | | - // "removeComments": true, /* Do not emit comments to output. */ |
27 | | - "noEmit": true /* Do not emit outputs. */, |
28 | | - // "importHelpers": true, /* Import emit helpers from 'tslib'. */ |
29 | | - "downlevelIteration": false /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */, |
30 | | - // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ |
31 | | - |
32 | | - /* Strict Type-Checking Options */ |
33 | | - "strict": true /* Enable all strict type-checking options. */, |
34 | | - // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ |
35 | | - // "strictNullChecks": true, /* Enable strict null checks. */ |
36 | | - // "strictFunctionTypes": true, /* Enable strict checking of function types. */ |
37 | | - // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ |
38 | | - // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ |
39 | | - // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ |
40 | | - // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ |
41 | | - |
42 | | - /* Additional Checks */ |
43 | | - // "noUnusedLocals": true, /* Report errors on unused locals. */ |
44 | | - // "noUnusedParameters": true, /* Report errors on unused parameters. */ |
45 | | - // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ |
46 | | - // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ |
47 | | - "exactOptionalPropertyTypes": true /* Interpret optional property types as written, rather than adding 'undefined'. */, |
48 | | - |
49 | | - /* Module Resolution Options */ |
50 | | - "moduleResolution": "node" /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */, |
51 | | - // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ |
52 | | - // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ |
53 | | - // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ |
54 | | - // "typeRoots": [], /* List of folders to include type definitions from. */ |
55 | | - // "types": [] /* Type declaration files to be included in compilation. */, |
56 | | - // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ |
57 | | - "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */, |
58 | | - // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ |
59 | | - // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ |
60 | | - |
61 | | - /* Source Map Options */ |
62 | | - // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ |
63 | | - // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ |
64 | | - // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ |
65 | | - // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ |
66 | | - |
67 | | - /* Experimental Options */ |
68 | | - // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ |
69 | | - // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ |
70 | | - |
71 | | - /* Advanced Options */ |
72 | | - "skipLibCheck": true /* Skip type checking of declaration files. */, |
73 | | - "forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */ |
| 9 | + "target": "ESNext", |
| 10 | + "lib": ["ESNext", "DOM", "DOM.Iterable"], |
| 11 | + "jsx": "react-jsx", |
| 12 | + "module": "Preserve", |
| 13 | + "moduleDetection": "force", |
| 14 | + "moduleResolution": "Bundler", |
| 15 | + "allowImportingTsExtensions": true, |
| 16 | + "resolveJsonModule": true, |
| 17 | + "allowJs": true, |
| 18 | + "noEmit": true, |
| 19 | + "allowSyntheticDefaultImports": true, |
| 20 | + "esModuleInterop": true, |
| 21 | + "forceConsistentCasingInFileNames": true, |
| 22 | + "skipLibCheck": true, |
| 23 | + "erasableSyntaxOnly": true, |
| 24 | + "checkJs": true, |
| 25 | + "isolatedModules": true, |
| 26 | + // "verbatimModuleSyntax": true, |
| 27 | + "strict": true, |
| 28 | + "noUnusedLocals": true, |
| 29 | + "noUnusedParameters": true, |
| 30 | + "noFallthroughCasesInSwitch": true, |
| 31 | + "strictNullChecks": true, |
| 32 | + "strictFunctionTypes": true, |
| 33 | + "strictPropertyInitialization": true, |
| 34 | + "alwaysStrict": true, |
| 35 | + "noImplicitAny": true, |
| 36 | + "noImplicitThis": true, |
| 37 | + "noImplicitReturns": true, |
| 38 | + "noImplicitOverride": true, |
74 | 39 | } |
75 | 40 | } |
0 commit comments