Sir, your 【dev】 command `tsc --watch & nodemon dist` will only make tsc --watch . But the `nodemon dist` will never run. You should use 【tsc --watch --onSuccess】 to call `node ./dist/index.js` . or use 【nodemon -e ts --exec \"tsc && node ./dist/index.js \"】。
Sir,
your 【dev】 command
tsc --watch & nodemon distwill only make tsc --watch . But the
nodemon distwill never run.You should use 【tsc --watch --onSuccess】 to call
node ./dist/index.js.or use 【nodemon -e ts --exec "tsc && node ./dist/index.js "】。