package.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. {
  2. "name": "audio-book-server",
  3. "version": "1.0.0",
  4. "description": "AI有声书生成工具后端服务",
  5. "main": "dist/app.js",
  6. "scripts": {
  7. "dev": "tsx watch src/app.ts",
  8. "build": "tsc && node -e \"require('fs').copyFileSync('src/config/models.json','dist/config/models.json')\"",
  9. "start": "node dist/app.js",
  10. "test:unit": "vitest run --config vitest.config.mts",
  11. "test:unit:watch": "vitest --config vitest.config.mts",
  12. "test:coverage": "vitest run --config vitest.config.mts --coverage",
  13. "test:integration": "vitest run --config vitest.config.mts tests/integration",
  14. "test:smoke": "npx playwright test --project=smoke --config=../tests/playwright.config.ts",
  15. "test:regression": "npx playwright test --project=regression --config=../tests/playwright.config.ts",
  16. "test:all": "npx playwright test --config=../tests/playwright.config.ts",
  17. "test:report": "npx playwright show-report ../tests/test-results/report",
  18. "deploy:check": "npm run test:smoke"
  19. },
  20. "dependencies": {
  21. "@alicloud/credentials": "^2.4.4",
  22. "@alicloud/green20220302": "^3.2.4",
  23. "@alicloud/openapi-client": "^0.4.15",
  24. "@alicloud/tea-util": "^1.4.11",
  25. "@koa/bodyparser": "^6.1.0",
  26. "@koa/cors": "^5.0.0",
  27. "@koa/router": "^12.0.1",
  28. "@langchain/community": "^0.0.56",
  29. "@langchain/core": "^1.1.39",
  30. "@langchain/langgraph": "^1.2.8",
  31. "@prisma/client": "^6.19.3",
  32. "@sentry/node": "^10.49.0",
  33. "@sentry/profiling-node": "^10.49.0",
  34. "@types/ws": "^8.18.1",
  35. "ali-oss": "^6.23.0",
  36. "alipay-sdk": "^4.14.0",
  37. "axios": "^1.7.2",
  38. "bull": "^4.16.5",
  39. "crypto-js": "^4.2.0",
  40. "dotenv": "^16.4.5",
  41. "fluent-ffmpeg": "^2.1.2",
  42. "ioredis": "^5.10.1",
  43. "is-generator-function": "^1.1.2",
  44. "jsonrepair": "^3.14.0",
  45. "jsonwebtoken": "^9.0.2",
  46. "koa": "^3.1.2",
  47. "koa-body": "^7.0.1",
  48. "koa-mount": "^4.2.0",
  49. "koa-static": "^5.0.0",
  50. "langchain": "^0.1.36",
  51. "mammoth": "^1.12.0",
  52. "mysql2": "^3.20.0",
  53. "openai": "^6.34.0",
  54. "pdf-parse": "^1.1.1",
  55. "prisma": "^6.19.3",
  56. "rate-limiter-flexible": "^11.0.1",
  57. "uuid": "^9.0.1",
  58. "wechatpay-node-v3": "^2.2.1",
  59. "winston": "^3.19.0",
  60. "ws": "^8.20.0"
  61. },
  62. "devDependencies": {
  63. "@playwright/test": "^1.60.0",
  64. "@types/crypto-js": "^4.2.2",
  65. "@types/fluent-ffmpeg": "^2.1.24",
  66. "@types/jsonwebtoken": "^9.0.6",
  67. "@types/koa": "^2.15.0",
  68. "@types/koa__cors": "^5.0.0",
  69. "@types/koa__router": "^12.0.4",
  70. "@types/node": "^20.14.2",
  71. "@types/uuid": "^9.0.8",
  72. "@vitest/coverage-v8": "^2.0.0",
  73. "ts-node": "^10.9.2",
  74. "tsx": "^4.11.2",
  75. "typescript": "^5.4.5",
  76. "vitest": "^2.0.0"
  77. }
  78. }