package.json 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. "name": "bee-server",
  3. "private": true,
  4. "version": "1.0.0",
  5. "description": "bee server",
  6. "type": "module",
  7. "module": "index.js",
  8. "main": "index.js",
  9. "scripts": {
  10. "dev": "NODE_ENV=development nodemon --watch src -e ts,tsx --exec tsx ./src/index.ts | pino-pretty",
  11. "pro": "NODE_ENV=production node ./dist/index.js | pino-pretty",
  12. "build": "pnpm run rd:build",
  13. "install": "cp -rf ./dist/* /var/www/bee/server/",
  14. "start": "pm2 start /var/www/bee/server/index.js --name bee-server",
  15. "restart": "pm2 restart bee-server",
  16. "stop": "pm2 stop bee-server && pm2 delete bee-server",
  17. "ts:build": "rm -rf dist && tsc && tsc-alias -f",
  18. "es:build": "rm -rf dist && NODE_ENV=production node scripts/esbuild-build.js",
  19. "rd:build": "rm -rf dist && NODE_ENV=production rolldown -c",
  20. "pack": "NODE_ENV=production pkg .",
  21. "test": "echo \"Error: no test specified\" && exit 1"
  22. },
  23. "bin": "dist/index.js",
  24. "pkg": {
  25. "scripts": "dist/**/*.js",
  26. "assets": [
  27. "dist/**/*.json",
  28. ".env",
  29. ".env.production"
  30. ],
  31. "targets": [
  32. "node14-linux-arm64"
  33. ],
  34. "outputPath": "bin"
  35. },
  36. "keywords": [
  37. "koa"
  38. ],
  39. "author": "jerry",
  40. "license": "ISC",
  41. "dependencies": {
  42. "@bull-board/api": "^6.6.2",
  43. "@bull-board/koa": "^6.6.2",
  44. "axios": "^1.7.7",
  45. "axios-retry": "^4.5.0",
  46. "bcryptjs": "^2.4.3",
  47. "bullmq": "^5.28.2",
  48. "date-fns": "^4.1.0",
  49. "dotenv": "^16.4.5",
  50. "i18next": "^23.16.5",
  51. "i18next-fs-backend": "^2.3.2",
  52. "i18next-http-middleware": "^3.6.0",
  53. "ioredis": "^5.4.1",
  54. "jsonwebtoken": "^9.0.2",
  55. "koa": "^2.15.3",
  56. "koa-body": "^6.0.1",
  57. "koa-i18next-detector": "^0.7.2",
  58. "koa-jwt": "^4.0.4",
  59. "koa-pino-logger": "^4.0.0",
  60. "koa-router": "^13.0.1",
  61. "koa-zod-errorhandler": "^1.0.0",
  62. "koa2-cors": "^2.0.6",
  63. "lodash": "^4.17.21",
  64. "md5": "^2.3.0",
  65. "mongoose": "^8.8.3",
  66. "mqtt": "^5.10.3",
  67. "pg": "^8.13.1",
  68. "pg-hstore": "^2.3.4",
  69. "pino": "^9.5.0",
  70. "pino-http": "^10.3.0",
  71. "qs": "^6.13.1",
  72. "query-string": "^9.1.1",
  73. "redis": "^4.7.0",
  74. "redlock": "^5.0.0-beta.2",
  75. "sequelize": "^6.37.5",
  76. "zod": "^3.23.8"
  77. },
  78. "devDependencies": {
  79. "@types/bcryptjs": "^2.4.6",
  80. "@types/bull": "^3.15.9",
  81. "@types/jsonwebtoken": "^9.0.7",
  82. "@types/koa": "^2.15.0",
  83. "@types/koa-pino-logger": "^3.0.4",
  84. "@types/koa-router": "^7.4.8",
  85. "@types/koa2-cors": "^2.0.5",
  86. "@types/lodash": "^4.17.13",
  87. "@types/md5": "^2.3.5",
  88. "@types/node": "^22.9.0",
  89. "@types/pg": "^8.15.4",
  90. "esbuild": "^0.25.5",
  91. "esbuild-plugin-pino": "^2.2.2",
  92. "pino-pretty": "^11.3.0",
  93. "pkg": "^5.8.1",
  94. "rolldown": "1.0.0-beta.24",
  95. "tsc-alias": "^1.8.10",
  96. "tsx": "^4.19.2",
  97. "typescript": "^5.6.3"
  98. }
  99. }