Created
September 12, 2023 08:19
-
-
Save lil5/f2163f18ba67ae51a7f67a329294ca4b to your computer and use it in GitHub Desktop.
Working tsconfig for nodejs
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
{ | |
"type": "module", | |
"main": "./src/app.ts", | |
"scripts": { | |
"dev": "node --experimental-specifier-resolution=node --loader ts-node/esm src/app.ts" | |
}, | |
"dependencies": {}, | |
"devDependencies": { | |
"@types/node": "^20.6.0", | |
"ts-node": "^10.9.1", | |
"tslib": "^2.6.2", | |
"typescript": "^5.2.2" | |
} | |
} |
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": { | |
"esModuleInterop": true, | |
"module": "NodeNext", | |
"moduleResolution": "NodeNext", | |
"target": "ES2020", | |
"sourceMap": true, | |
"outDir": "dist" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment