xxxxxxxxxx
npm i ts-node-dev
ts-node-dev --respawn --transpile-only src/server.ts
xxxxxxxxxx
Install ts-node-dev
yarn add ts-node-dev --dev
npm i ts-node-dev --save-dev
So you just combine node-dev and ts-node options (see docs of those packages):
ts-node-dev --respawn --transpile-only server.ts
There is also short alias tsnd for running ts-node-dev:
tsnd --respawn server.ts
ts-node-dev --respawn --transpile-only server.ts
xxxxxxxxxx
ts-node-dev --respawn --transpile-only server.ts
ts-node-dev
xxxxxxxxxx
npm i ts-node-dev --save-dev
//Usage & package.json file set option
ts-node-dev --respawn --transpile-only server.ts
Typescript file run directly on node.js, this script have to add in script as start to run npm command
xxxxxxxxxx
ts-node-dev --respawn --transpile-only server.ts
xxxxxxxxxx
version: '3'
services:
rabbitmq:
image: "rabbitmq:3-management"
hostname: "rabbit"
ports:
- "15672:15672"
- "5672:5672"
labels:
NAME: "rabbitmq"
volumes:
- ./rabbitmq-isolated.conf:/etc/rabbitmq/rabbitmq.config