nodemon typescript
// nodemon.json
{
"watch": ["src"],
"ext": "ts",
"exec": "ts-node ./src/app.ts"
}
// package.json
{
"start" :"rm -rf dist/ && tsc --project . && node dist/app.js",
"dev": "nodemon ."
}
nodemon typescript
// nodemon.json
{
"watch": ["src"],
"ext": "ts",
"exec": "ts-node ./src/app.ts"
}
// package.json
{
"start" :"rm -rf dist/ && tsc --project . && node dist/app.js",
"dev": "nodemon ."
}
nodemon with ts-node not work on linux
"scripts": {
"cleanup": "rimraf dist",
"build": "tsc --pretty",
"start": "node dist/server.js",
"dev": "nodemon -w 'src/**/*.ts' -x ts-node --files -H -T server.ts",
"format": "prettier ./src/**/*.{ts,spect.ts,test.ts} --write",
"lint": "eslint ./src/**/*.{ts,spect.ts,test.ts} --fix",
"lintfix": "npm run format && npm run lint",
"test": "jest",
"test:watch": "jest --watchAll"
},
typscript node-ts with nodemon
nodemon --watch "src/**" --ext "ts,json" --ignore "src/**/*.spec.ts" --exec "ts-node src/index.ts"
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us