31 lines
2.3 KiB
JSON
31 lines
2.3 KiB
JSON
{
|
|
"extends": "@tsconfig/node20/tsconfig.json",
|
|
"compilerOptions": {
|
|
/* Visit https://aka.ms/tsconfig to read more about this file */
|
|
|
|
// from https://github.com/tsconfig/bases/blob/main/bases/node18.json
|
|
"target": "es2022", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
|
"lib": ["es2023"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
|
|
// values from https://github.com/tsconfig/bases#centralized-recommendations-for-tsconfig-bases
|
|
"module": "Node16",
|
|
"moduleResolution": "Node16",
|
|
|
|
"declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
"declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
"inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
"outDir": "./lib/esm", /* Specify an output folder for all emitted files. */
|
|
"inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
|
"isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
"verbatimModuleSyntax": false, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
|
|
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
|
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
|
"strict": true, /* Enable all strict type-checking options. */
|
|
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
},
|
|
"include": [
|
|
"./src"
|
|
]
|
|
}
|