Skip to content

Instantly share code, notes, and snippets.

@evan-boissonnot
Created October 22, 2020 23:00
Show Gist options
  • Save evan-boissonnot/21980eba716d1fd36e3e278610334628 to your computer and use it in GitHub Desktop.
Save evan-boissonnot/21980eba716d1fd36e3e278610334628 to your computer and use it in GitHub Desktop.
tsconfig.json for node.js with typescript
{
"compilerOptions": {
"target": "ES2017",
"module": "ESNext",
"outDir": "dist"
},
"files": [
"./node_modules/@types/node/index.d.ts"
],
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules"
],
"ts-node": {
// these options are overrides used only by ts-node
// same as our --compilerOptions flag and our TS_NODE_COMPILER_OPTIONS environment variable
"compilerOptions": {
"module": "commonjs"
}
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment