mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-05-11 10:26:25 +02:00
fix nodemon to watch .ts files
This commit is contained in:
parent
12729b36fb
commit
7da9de9991
2 changed files with 6 additions and 1 deletions
5
nodemon.json
Normal file
5
nodemon.json
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"watch": ["src"],
|
||||||
|
"ext": "ts,json",
|
||||||
|
"exec": "(npm test || echo test failed) && npm start"
|
||||||
|
}
|
|
@ -5,7 +5,7 @@
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "ts-node test/test.ts",
|
"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'",
|
"dev:bash": "nodemon -x 'npm test ; npm start'",
|
||||||
"start": "ts-node src/index.ts",
|
"start": "ts-node src/index.ts",
|
||||||
"tsc": "tsc -p tsconfig.json"
|
"tsc": "tsc -p tsconfig.json"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue