package.json 977 B

123456789101112131415161718192021222324252627282930313233343536
  1. {
  2. "name": "server",
  3. "version": "1.0.0",
  4. "license": "MIT",
  5. "scripts": {
  6. "compile": "rimraf ./dist && tsup ./index.ts --dts --format cjs,esm ",
  7. "prod": "npx pm2 start ecosystem.config.js --env production",
  8. "restart": "pm2 restart ecosystem.config.js --env production",
  9. "start": "nodemon",
  10. "stop": "npx pm2 stop ecosystem.config.js"
  11. },
  12. "dependencies": {
  13. "fs-extra": "^11.1.1",
  14. "koa": "^2.14.2",
  15. "koa-body": "^6.0.1",
  16. "koa-bodyparser": "^4.4.1",
  17. "koa-route": "^3.2.0",
  18. "koa-router": "^12.0.0",
  19. "koa-static": "^5.0.0",
  20. "koa-websocket": "^7.0.0",
  21. "koa2-cors": "^2.0.6"
  22. },
  23. "devDependencies": {
  24. "@types/koa": "^2.13.6",
  25. "@types/koa-bodyparser": "^5.0.2",
  26. "@types/koa-router": "^7.4.4",
  27. "@types/node": "^20.4.0",
  28. "nodemon": "^2.0.22",
  29. "pm2": "^5.3.0",
  30. "rimraf": "^5.0.1",
  31. "ts-node": "^10.9.1",
  32. "tsconfig-paths": "^4.2.0",
  33. "tsup": "^7.1.0",
  34. "typescript": "^5.1.6"
  35. }
  36. }