Skip to content

Instantly share code, notes, and snippets.

@devdbrandy
Last active Oct 3, 2019
Embed
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": [
"node_modules",
"**/node_modules/*",
"dist"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment