Skip to content

Instantly share code, notes, and snippets.

@vijayakumar-psg587
Created September 2, 2020 04:41
Show Gist options
  • Save vijayakumar-psg587/0db18bf42946ab555d5fcb82ef07d036 to your computer and use it in GitHub Desktop.
Save vijayakumar-psg587/0db18bf42946ab555d5fcb82ef07d036 to your computer and use it in GitHub Desktop.
Node parameters: --require ts-node/register -r ts-node -r dotenv/config -r tsconfig-paths/register src/main.ts dotenv_config_path=./config/development/.env
// baiscally we need -require ts-node/register <things in nodemon exec>
NODE_ENV=dev
@vijayakumar-psg587
Copy link
Author

Stand alone nodejs -v16

./node_modules/.bin/ts-node -r tsconfig-paths/register src/index.ts
and just give the working directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment