compile as part of the test script since ts-node doesn't typecheck everything

This commit is contained in:
DetachHead 2021-07-03 15:46:51 +10:00
parent f1d22c6ca4
commit eb481215e3

View file

@ -4,7 +4,7 @@
"description": "Server that holds the SponsorBlock database", "description": "Server that holds the SponsorBlock database",
"main": "src/index.ts", "main": "src/index.ts",
"scripts": { "scripts": {
"test": "ts-node test/test.ts", "test": "npm run tsc && ts-node test/test.ts",
"dev": "nodemon", "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",