package.json 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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 \"const f=require('fs');f.copyFileSync('src/config/models.json','dist/config/models.json');f.copyFileSync('src/config/alicloud-tts-lang-voice-matrix.json','dist/config/alicloud-tts-lang-voice-matrix.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:core": "npx playwright test --project=core-business --config=../tests/playwright.config.ts",
  17. "test:all": "npx playwright test --config=../tests/playwright.config.ts",
  18. "test:report": "npx playwright show-report ../tests/test-results/report",
  19. "deploy:check": "npm run test:core"
  20. },
  21. "dependencies": {
  22. "@alicloud/credentials": "^2.4.4",
  23. "@alicloud/green20220302": "^3.2.4",
  24. "@alicloud/openapi-client": "^0.4.15",
  25. "@alicloud/tea-util": "^1.4.11",
  26. "@koa/bodyparser": "^6.1.0",
  27. "@koa/cors": "^5.0.0",
  28. "@koa/router": "^12.0.1",
  29. "@langchain/community": "^0.0.56",
  30. "@langchain/core": "^1.1.39",
  31. "@langchain/langgraph": "^1.2.8",
  32. "@prisma/client": "^6.19.3",
  33. "@sentry/node": "^10.49.0",
  34. "@sentry/profiling-node": "^10.49.0",
  35. "@types/ws": "^8.18.1",
  36. "ali-oss": "^6.23.0",
  37. "alipay-sdk": "^4.14.0",
  38. "axios": "^1.7.2",
  39. "bull": "^4.16.5",
  40. "crypto-js": "^4.2.0",
  41. "dotenv": "^16.4.5",
  42. "fluent-ffmpeg": "^2.1.2",
  43. "ioredis": "^5.10.1",
  44. "is-generator-function": "^1.1.2",
  45. "jsonrepair": "^3.14.0",
  46. "jsonwebtoken": "^9.0.2",
  47. "koa": "^3.1.2",
  48. "koa-body": "^7.0.1",
  49. "koa-mount": "^4.2.0",
  50. "koa-static": "^5.0.0",
  51. "langchain": "^0.1.36",
  52. "mammoth": "^1.12.0",
  53. "mysql2": "^3.20.0",
  54. "openai": "^6.34.0",
  55. "pdf-parse": "^1.1.1",
  56. "prisma": "^6.19.3",
  57. "rate-limiter-flexible": "^11.0.1",
  58. "uuid": "^9.0.1",
  59. "wechatpay-node-v3": "^2.2.1",
  60. "winston": "^3.19.0",
  61. "ws": "^8.20.0"
  62. },
  63. "devDependencies": {
  64. "@playwright/test": "^1.60.0",
  65. "@types/crypto-js": "^4.2.2",
  66. "@types/fluent-ffmpeg": "^2.1.24",
  67. "@types/jsonwebtoken": "^9.0.6",
  68. "@types/koa": "^2.15.0",
  69. "@types/koa__cors": "^5.0.0",
  70. "@types/koa__router": "^12.0.4",
  71. "@types/node": "^20.14.2",
  72. "@types/uuid": "^9.0.8",
  73. "@vitest/coverage-v8": "^2.0.0",
  74. "ts-node": "^10.9.2",
  75. "tsx": "^4.11.2",
  76. "typescript": "^5.4.5",
  77. "vitest": "^2.0.0"
  78. }
  79. }