Created
May 5, 2021 18:01
-
-
Save pedropalhari/a395a32d421007d2f83764559b849c08 to your computer and use it in GitHub Desktop.
Node.js with Typescript without the massive ts-node overhead
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#export NODE_PATH=/home/pedro/.nvm/versions/node/v14.16.0/lib/node_modules | |
export NODE_PATH= | |
alias tnode="node -r @swc-node/register" |
Or with the ts-node lesser overhead:
alias tnode="ts-node --transpile-only -O '{\"esModuleInterop\": true, \"skipLibCheck\": true}'"
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When starting pm2, create a file with:
And run it with
pm2 start pm2.js --name api