|
11 | 11 | // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ |
12 | 12 |
|
13 | 13 | /* Language and Environment */ |
14 | | - "target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ |
| 14 | + "target": "ES2020", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ |
15 | 15 | // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ |
16 | 16 | // "jsx": "preserve", /* Specify what JSX code is generated. */ |
17 | 17 | // "libReplacement": true, /* Enable lib replacement. */ |
|
26 | 26 | // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ |
27 | 27 |
|
28 | 28 | /* Modules */ |
29 | | - "module": "CommonJS", /* Specify what module code is generated. */ |
30 | | - "rootDir": "src", /* Specify the root folder within your source files. */ |
31 | | - "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ |
| 29 | + "module": "ESNext", /* Specify what module code is generated. */ |
| 30 | + "rootDir": "./src", /* Ensure the directory structure is preserved. */ |
| 31 | + "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */ |
32 | 32 | // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ |
33 | 33 | // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ |
34 | 34 | //"rootDirs": ["./src"], /* Allow multiple folders to be treated as one when resolving modules. */ |
|
54 | 54 | /* Emit */ |
55 | 55 | "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ |
56 | 56 | // "declarationMap": true, /* Create sourcemaps for d.ts files. */ |
57 | | - // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ |
| 57 | + "emitDeclarationOnly": false, /* Only output d.ts files and not JavaScript files. */ |
58 | 58 | // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ |
59 | 59 | // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ |
60 | 60 | // "noEmit": true, /* Disable emitting files from a compilation. */ |
61 | 61 | // "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. */ |
62 | | - "outDir": "dist", /* Specify an output folder for all emitted files. */ |
| 62 | + "outDir": "./dist/esm", /* Specify an output folder for all emitted files. */ |
63 | 63 | // "removeComments": true, /* Disable emitting comments. */ |
64 | 64 | // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ |
65 | 65 | // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ |
|
72 | 72 | // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */ |
73 | 73 | // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ |
74 | 74 | // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */ |
75 | | - "declarationDir": "dist/types", /* Specify the output directory for generated declaration files. */ |
| 75 | + "declarationDir": "./dist/types", /* Specify the output directory for generated declaration files. */ |
76 | 76 |
|
77 | 77 | /* Interop Constraints */ |
78 | 78 | // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ |
|
108 | 108 |
|
109 | 109 | /* Completeness */ |
110 | 110 | //"skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ |
111 | | - "skipLibCheck": true, /* Skip type checking all .d.ts files. */ |
| 111 | + "skipLibCheck": true /* Skip type checking all .d.ts files. */ |
112 | 112 | }, |
113 | | - "exclude": [ |
114 | | - "**/*.test.ts", |
115 | | - "./dist/**/*" |
116 | | - ] |
| 113 | + "include": ["src/**/*"], // Include all files in the src directory |
| 114 | + "exclude": ["node_modules", "dist"] // Exclude unnecessary files |
117 | 115 | } |
0 commit comments