diff --git a/nodemon.json b/nodemon.json new file mode 100644 index 0000000..6c820c6 --- /dev/null +++ b/nodemon.json @@ -0,0 +1,5 @@ +{ + "watch": ["src"], + "ext": "ts,json", + "exec": "(npm test || echo test failed) && npm start" +} diff --git a/package.json b/package.json index bdd33fd..46ce9b4 100644 --- a/package.json +++ b/package.json @@ -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"