1. Source maps in Node CLIs help by…
Source maps link compiled JavaScript back to TypeScript, so errors and logs point to your original TS files—perfect for debugging CLI tools.
// tsconfig.json
{
"compilerOptions": { "sourceMap": true, "outDir": "dist" }
}
// run Node with source-map support if needed