Skip to content

Instantly share code, notes, and snippets.

@vschoener
Last active August 12, 2020 14:34
Show Gist options
  • Save vschoener/6268581a22ca3cfde57de687d1b5c792 to your computer and use it in GitHub Desktop.
Save vschoener/6268581a22ca3cfde57de687d1b5c792 to your computer and use it in GitHub Desktop.
tsconfig medium say-bye-to-relative-path
{
"compilerOptions": {
"module": "commonjs",
"declaration": true,
"removeComments": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"target": "es2019",
"sourceMap": true,
"lib": ["esnext", "dom"],
"outDir": "dist",
"baseUrl": "./",
"incremental": true,
// Change this paths keys
"paths": {
"@src/*": ["src/*"],
// Just as an example of what you can
"@services/*": ["src/services/*"],
// Or even cooler
"@/*": ["src/*"]
}
},
"exclude": ["node_modules", "dist"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment