build(config): update TypeScript module resolution and type roots

Changed moduleResolution from 'node' to 'bundler' for modern bundler compatibility and expanded typeRoots to include Node.js types from node_modules/@types, improving type discovery and ensuring proper TypeScript compilation in the current environment.
This commit is contained in:
2025-09-30 17:39:26 +07:00
parent 670ab42b16
commit e32ed16a48

View File

@@ -2,7 +2,7 @@
"compilerOptions": {
"target": "esnext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
"module": "CommonJS" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
"moduleResolution": "node",
"moduleResolution": "bundler",
"sourceMap": true /* Generates corresponding '.map' file. */,
"outDir": "dist" /* Redirect output structure to the directory. */,
"strict": true /* Enable all strict type-checking options. */,
@@ -10,7 +10,7 @@
"esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */,
"skipLibCheck": true /* Skip type checking of declaration files. */,
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
"typeRoots": ["./src/types"]
"typeRoots": ["./src/types", "./node_modules/@types"]
},
"types": ["node"],
"include": ["src"],