dividab / tsconfig-paths

Load node modules according to tsconfig paths, in run-time or via API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paths in production

hernique33comiitei opened this issue · comments

A while ago, I saw a post in this issue talking about building with tsconfig-paths. For me it worked like this:
node -r ts-node/register -r tsconfig-paths/register dist/index.js
Is it correct for this to remain in production? Or should it somehow stick to the raw path when compiling?

You don't need ts-node/register when using the build/compiled files in dist/*.js. You only need tsconfig-paths/register. Yes, also in production

Understood, thanks friend