Skip to content

Instantly share code, notes, and snippets.

@samuelastech
Last active October 3, 2022 18:21
Show Gist options
  • Save samuelastech/8d1d678f87e49c103955fb4fcea310e7 to your computer and use it in GitHub Desktop.
Save samuelastech/8d1d678f87e49c103955fb4fcea310e7 to your computer and use it in GitHub Desktop.
Typescript setup
{
"scripts": {
"dev": "ts-node-dev -r tsconfig-paths/register --respawn --transpile-only --ignore-watch node_modules --no-notify bin/www.ts"
}
}
{
"compilerOptions": {
"target": "es2017",
"lib": ["es6"],
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"module": "commonjs",
"rootDir": "./",
"outDir": "./dist",
"typeRoots": [
"./node_modules/@types",
"./@types"
],
"resolveJsonModule": true,
"allowJs": true,
"removeComments": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"baseUrl": ".",
"paths": {
"@controllers/*": ["./controllers/*"],
"@models/*": ["./models/*"],
"@views/*": ["./views/*"]
},
"strictNullChecks": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment