-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtsconfig.commonjs.json
16 lines (16 loc) · 1.01 KB
/
tsconfig.commonjs.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{
"compilerOptions": {
"target": "ESNext", // Modern JavaScript
"module": "CommonJS", // CommonJS for backwards compatibility
"moduleResolution": "node", // Resolves modules like Node.js does
"outDir": "./lib/cjs", // Output directory
"esModuleInterop": true, // Allow default imports for non-ESM modules
"declaration": true, // Generate type declarations
"declarationDir": "./lib/cjs", // Output directory for type declarations
"strict": true, // Strict type checking
"skipLibCheck": true // Skip type checking of declaration files
// "noCheck": true // Skip type checking
},
"include": ["src/**/*"], // Include all files in src directory
"exclude": ["node_modules", "lib"] // Exclude node_modules and lib from compilation
}