Skip to content

Instantly share code, notes, and snippets.

@bennycode
Created January 24, 2024 11:08
Show Gist options
  • Save bennycode/04a3bfe9cc151d63242e8198e80e09d1 to your computer and use it in GitHub Desktop.
Save bennycode/04a3bfe9cc151d63242e8198e80e09d1 to your computer and use it in GitHub Desktop.
CommonJS TS Config
{
"compilerOptions": {
// Code
"rootDir": "src", // ⟵ In
"outDir": "dist", // ⟵ Out
// Syntax
"lib": ["ES2022"], // ← In
"target": "ES2022", // ← Out
// Modules
"moduleResolution": "node", // ⟵ In
"module": "commonjs", // ⟵ Out
// Type Checking Behaviour
"strict": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment