# tsconfig-paths

> Make Node resolve the paths aliases in your tsconfig.json at run time

Source: https://talira.ai/catalog/tsconfig-paths-sfbsq5jf
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / build / module resolution](https://talira.ai/categories/developer-tools/build/module-resolution)
- Licence: MIT[^1][^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source (MIT).
- Free tier: yes[^1]
- Backed by: [Jonas Kello](https://talira.ai/orgs/jonas-kello.md)

tsconfig-paths loads modules whose location comes from the paths section of tsconfig.json or jsconfig.json. [TypeScript](https://talira.ai/catalog/typescript-w0asrgz8.md) resolves those path aliases when it compiles, but Node, and ts-node, then fail to find the modules at run time. Requiring tsconfig-paths/register reads the paths and rewrites Node's module loading to the real file paths. It works with node, ts-node and mocha through -r, and also has an API for loading the config and building a path matcher.

## Links

- GitHub: https://github.com/jonaskello/tsconfig-paths

## Problems it solves

- Node can't find modules imported through tsconfig paths aliases after compiling TypeScript
- use tsconfig.json path aliases when running code with ts-node
- make mocha tests resolve TypeScript path aliases

## Features

- tsconfig-paths/register hook for node, ts-node and mocha
- reads paths from tsconfig.json or jsconfig.json
- TS_NODE_BASEURL and TS_NODE_PROJECT overrides
- API to load the config and create a path matcher

## Trust

Overall: 0.38 out of 1.
Signals: maintenance 0.27, adoption 0.66, momentum 0.37, community 0.68, backing 0.30, extensibility 0.00.

- 1.9k GitHub stars
- 50 contributors
- backed by Jonas Kello

Warnings:

- last commit 9 months ago

## Related

- Works with [TypeScript](https://talira.ai/catalog/typescript-w0asrgz8.md)

## Alternatives

- [resolve](https://talira.ai/catalog/resolve-3e779t3d.md): Node's require.resolve() algorithm as a library, async and sync

## Sources

[^1]: https://github.com/jonaskello/tsconfig-paths/blob/master/LICENSE (checked 29 Nov 2026)
[^2]: https://github.com/jonaskello/tsconfig-paths/blob/master/package.json (checked 29 Nov 2026)
