0

I'm using pm2 (2.5.0) and ts-node (3.1.0) I saw in ts-node's documentation that you can pass a "--fast" option, so that compilation is faster.

I'm using pm2 to start my .ts app. How can I tell pm2 to pass that 'fast' option to ts-node?

Thanks

David
  • 33,444
  • 11
  • 80
  • 118

1 Answers1

1

According to this issue, the standard UNIX way of passing parameters to the script is supported since end of 2016. This should work:

pm2 start app.ts -- -F
Starscream
  • 1,128
  • 1
  • 9
  • 22