Skip to content

Instantly share code, notes, and snippets.

@sollazzo08
Created November 11, 2025 18:41
Show Gist options
  • Select an option

  • Save sollazzo08/e033aa7ac8638d156e91337f569bc709 to your computer and use it in GitHub Desktop.

Select an option

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.
{
"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