esbuild-node-tsc
esbuild-node-tsc copied to clipboard
How to use aliases with etsc ? (like "@controllers/*" to reference files in "./src/controllers")
Hi,
I would like to use TS paths options:
{
"compilerOptions": {
...
"paths": {
"@config/*": ["./src/config/*"],
"@controllers/*": ["./src/controllers/*"],
"@helpers/*": ["./src/helpers/*"],
"@models/*": ["./src/models/*"],
"@services/*": ["./src/services/*"],
"@templates/*": ["./src/templates/*"],
"@utils/*": ["./src/utils/*"]
}
},
...
}
How can I run etsc so that it recognizes those paths ? For now I get the error:
Error: Cannot find module '@services/logger'
Thanks !