Created
November 11, 2025 18:41
-
-
Save sollazzo08/e033aa7ac8638d156e91337f569bc709 to your computer and use it in GitHub Desktop.
My go-to TypeScript configuration for modern Node.js libraries built for CommonJS with an ES2020 target.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "compilerOptions": { | |
| "target": "ES2020", | |
| "module": "CommonJS", | |
| "moduleResolution": "Node", | |
| "lib": ["ES2020"], | |
| "rootDir": "src", | |
| "outDir": "dist", | |
| "declaration": true, | |
| "sourceMap": true, | |
| "strict": true, | |
| "noImplicitAny": true, | |
| "esModuleInterop": true, | |
| "resolveJsonModule": true, | |
| "skipLibCheck": true, | |
| "forceConsistentCasingInFileNames": true | |
| }, | |
| "include": ["src"], | |
| "exclude": ["node_modules", "dist", "tests", "examples"] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment