|
7 | 7 | "node": ">= 22.0.0" |
8 | 8 | }, |
9 | 9 | "scripts": { |
| 10 | + "build": "tsc && cp -r src/scripts dist/scripts", |
| 11 | + "coverage": "nyc report --reporter=text-lcov > coverage.lcov", |
| 12 | + "deploy:init": "cross-env NODE_ENV=production node setup.js", |
| 13 | + "deploy:start": "npx pm2 start pm2.config.json", |
10 | 14 | "dev": "concurrently \"npm run dev:app\" \"npm run dev:ws\" \"npm run dev:updater\" \"npm run dev:worker\"", |
11 | 15 | "dev:app": "cross-env NODE_ENV=development nodemon -e ts,js --exec ts-node src/app.ts", |
12 | | - "dev:ws": "cross-env NODE_ENV=development nodemon -e ts,js --exec ts-node src/ws.ts", |
13 | 16 | "dev:updater": "cross-env NODE_ENV=development nodemon -e ts,js --exec ts-node src/jobs/updater.ts", |
14 | 17 | "dev:worker": "cross-env NODE_ENV=development nodemon -e ts,js --exec ts-node src/jobs/worker.ts", |
15 | | - "build": "tsc && cp -r src/scripts dist/scripts", |
16 | | - "start": "cross-env NODE_ENV=production node dist/app.js", |
17 | | - "deploy:init": "cross-env NODE_ENV=production node setup.js", |
18 | | - "deploy:start": "npx pm2 start pm2.config.json", |
19 | | - "pretest": "cross-env NODE_ENV=test ts-node test/pretest.ts", |
20 | | - "test": "cross-env-shell NODE_ENV=test \"ts-node test/pretest.ts && nyc ava && ts-node test/posttest.ts\"", |
21 | | - "report": "nyc report --reporter=html", |
22 | | - "posttest": "cross-env NODE_ENV=test ts-node test/posttest.ts", |
| 18 | + "dev:ws": "cross-env NODE_ENV=development nodemon -e ts,js --exec ts-node src/ws.ts", |
23 | 19 | "lint": "eslint .", |
24 | 20 | "lint:fix": "eslint . --fix", |
25 | | - "coverage": "nyc report --reporter=text-lcov > coverage.lcov" |
| 21 | + "posttest": "cross-env NODE_ENV=test ts-node test/posttest.ts", |
| 22 | + "pretest": "cross-env NODE_ENV=test ts-node test/pretest.ts", |
| 23 | + "report": "nyc report --reporter=html", |
| 24 | + "start": "cross-env NODE_ENV=production node dist/app.js", |
| 25 | + "test": "cross-env-shell NODE_ENV=test \"ts-node test/pretest.ts && nyc ava && ts-node test/posttest.ts\"", |
| 26 | + "typecheck": "tsc --noEmit --skipLibCheck" |
26 | 27 | }, |
27 | 28 | "dependencies": { |
28 | 29 | "@koa/router": "^15.3.0", |
|
0 commit comments