I have a project that written in Typescript on NodeJS. I am using relative path for my modules to import another. But this usage is getting dirty while project is growing. Because of that I want to convert relative paths to absolute path.
Here is my project folder structure:
src
├── controllers
├── repositories
├── services
│ ├── user.service.ts
|── tsconfig.json
I want to use import another module like below.
import userServices from "src/services/user.service";
tsconfig.json
"moduleResolution": "node",
"baseUrl": ".",
"paths": {
"*": ["src/*"]
}
Above configurations is not working on my workspace.
Could you help me about that?