Skip to content

A complete example of how to configure TypeScript path aliases in a Node.js project, compatible with ts-node-dev and jest

Notifications You must be signed in to change notification settings

AlbertHernandez/nodejs-typescript-path-aliases

Repository files navigation

🐢 Node TypeScript Path Aliases

A complete example of how to configure TypeScript path aliases in a Node.js project. This setup includes full support for path aliases in development, testing and production builds.

TypeScript path aliases are configured in a single place: the tsconfig.json file. This central configuration simplifies maintenance and avoids duplication across environments, ensuring that your imports remain consistent and easy to update as your project grows.


⚡️ Getting Started

1. 📦 Install dependencies

npm install

🏃‍♂️ 2. Run the app in development mode

npm run dev

🛠 3. Build for production

npm run build

4. 🚀 Start production build

npm run start

5. 🧪 Run tests

npm run test

About

A complete example of how to configure TypeScript path aliases in a Node.js project, compatible with ts-node-dev and jest

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published