Example config for modern Node.js projects.
Section: tsconfig Basics
Node-focused tsconfig
json
json
{
"compilerOptions": {
"target": "ES2022",
"module": "NodeNext",
"moduleResolution": "NodeNext",
"outDir": "dist",
"rootDir": "src",
"strict": true,
"esModuleInterop": true
},
"include": ["src/**/*"]
}Explanation
NodeNext settings are common when using native ESM in Node.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing tsconfig Basics