diff --git a/backend/package.json b/backend/package.json index 1da26a1eff..1338b60b0a 100644 --- a/backend/package.json +++ b/backend/package.json @@ -18,8 +18,9 @@ }, "main": "src/server.ts", "scripts": { + "clean": "rm -f ../logs/adminActivity.log", "start": "npm run tsc && NODE_ENV=production node ./dist/server.js --log=1 --registry=localhost:50051", - "start:dev": "export NODE_TLS_REJECT_UNAUTHORIZED=0 && export NODE_ENV=development && nodemon src/server.ts --log=1 --registry=localhost:50051", + "start:dev": "npm run clean && export NODE_TLS_REJECT_UNAUTHORIZED=0 && export NODE_ENV=development && nodemon src/server.ts --log=1 --registry=localhost:50051", "debug": "npm run tsc && export NODE_TLS_REJECT_UNAUTHORIZED=0 && export NODE_ENV=development && node --inspect ./dist/server.js --log=1 --registry=localhost:50051", "build-only": "tsc -p . && node ./dist/server.js --log=1 --registry=localhost:50051 --buildonly", "build": "npm run build:clean; npm run tsc",