fix nodemon to watch .ts files

This commit is contained in:
Dainius Dauksevicius 2020-11-01 17:14:45 +02:00
parent 12729b36fb
commit 7da9de9991
2 changed files with 6 additions and 1 deletions

5
nodemon.json Normal file
View file

@ -0,0 +1,5 @@
{
"watch": ["src"],
"ext": "ts,json",
"exec": "(npm test || echo test failed) && npm start"
}

View file

@ -5,7 +5,7 @@
"main": "src/index.ts",
"scripts": {
"test": "ts-node test/test.ts",
"dev": "nodemon -x \"(npm test || echo test failed) && npm start\"",
"dev": "nodemon",
"dev:bash": "nodemon -x 'npm test ; npm start'",
"start": "ts-node src/index.ts",
"tsc": "tsc -p tsconfig.json"