There is a package called tsc-alias include it along side scripts in package.json npx tsc && tsc-alias this would resolve the paths so that we can run it with node. I believe this is much easier and cleaner
"scripts": {
"build": "npx tsc && tsc-alias"
}