Skip to content

Instantly share code, notes, and snippets.

Last active Oct 3, 2019
What would you like to do?
A sample of code editor mappings for NodeJS module resolvers (custom alias)
"compilerOptions": {
"baseUrl": ".",
"target": "es6",
"module": "commonjs",
"paths": {
"@config/*": ["src/config/*"],
"@database/*": ["src/database/*"],
"@factories/*": ["src/database/factories/*"],
"@helpers/*": ["src/helpers/*"],
"@middlewares/*": ["src/middlewares/*"],
"@models/*": ["src/database/models/*"],
"@modules/*": ["src/modules/*"],
"@services/*": ["src/services/*"],
"@src/*": ["src/*"],
"@test/*": ["test/*"]
"exclude": [
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment