Created
October 22, 2020 23:00
-
-
Save evan-boissonnot/21980eba716d1fd36e3e278610334628 to your computer and use it in GitHub Desktop.
tsconfig.json for node.js with typescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"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