package.json 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. {
  2. "name": "dify-web",
  3. "version": "0.6.14",
  4. "private": true,
  5. "engines": {
  6. "node": ">=18.17.0"
  7. },
  8. "scripts": {
  9. "dev": "next dev",
  10. "build": "next build",
  11. "start": "cp -r .next/static .next/standalone/.next/static && cp -r public .next/standalone/public && cross-env PORT=$npm_config_port HOSTNAME=$npm_config_host node .next/standalone/server.js",
  12. "lint": "next lint",
  13. "fix": "next lint --fix",
  14. "eslint-fix": "eslint --fix",
  15. "prepare": "cd ../ && node -e \"if (process.env.NODE_ENV !== 'production'){process.exit(1)} \" || husky install ./web/.husky",
  16. "gen-icons": "node ./app/components/base/icons/script.js",
  17. "uglify-embed": "node ./bin/uglify-embed",
  18. "check-i18n": "node ./i18n/script.js",
  19. "test": "jest",
  20. "test:watch": "jest --watch"
  21. },
  22. "dependencies": {
  23. "@babel/runtime": "^7.22.3",
  24. "@dagrejs/dagre": "^1.1.2",
  25. "@emoji-mart/data": "^1.1.2",
  26. "@floating-ui/react": "^0.25.2",
  27. "@formatjs/intl-localematcher": "^0.5.4",
  28. "@headlessui/react": "^1.7.13",
  29. "@heroicons/react": "^2.0.16",
  30. "@hookform/resolvers": "^3.3.4",
  31. "@lexical/react": "^0.16.0",
  32. "@mdx-js/loader": "^2.3.0",
  33. "@mdx-js/react": "^2.3.0",
  34. "@monaco-editor/react": "^4.6.0",
  35. "@next/mdx": "^14.0.4",
  36. "@remixicon/react": "^4.2.0",
  37. "@sentry/react": "^7.54.0",
  38. "@sentry/utils": "^7.54.0",
  39. "@tailwindcss/line-clamp": "^0.4.4",
  40. "@tailwindcss/typography": "^0.5.9",
  41. "ahooks": "^3.7.5",
  42. "class-variance-authority": "^0.7.0",
  43. "classnames": "^2.3.2",
  44. "copy-to-clipboard": "^3.3.3",
  45. "crypto-js": "^4.2.0",
  46. "dayjs": "^1.11.7",
  47. "echarts": "^5.4.1",
  48. "echarts-for-react": "^3.0.2",
  49. "emoji-mart": "^5.5.2",
  50. "fast-deep-equal": "^3.1.3",
  51. "i18next": "^22.4.13",
  52. "i18next-resources-to-backend": "^1.1.3",
  53. "immer": "^9.0.19",
  54. "js-audio-recorder": "^1.0.7",
  55. "js-cookie": "^3.0.1",
  56. "katex": "^0.16.10",
  57. "lamejs": "^1.2.1",
  58. "lexical": "^0.16.0",
  59. "lodash-es": "^4.17.21",
  60. "mermaid": "10.4.0",
  61. "negotiator": "^0.6.3",
  62. "next": "^14.1.1",
  63. "next-nprogress-bar": "^2.3.8",
  64. "pinyin-pro": "^3.23.0",
  65. "qrcode.react": "^3.1.0",
  66. "qs": "^6.11.1",
  67. "rc-textarea": "^1.5.2",
  68. "react": "~18.2.0",
  69. "react-18-input-autosize": "^3.0.0",
  70. "react-dom": "~18.2.0",
  71. "react-error-boundary": "^4.0.2",
  72. "react-headless-pagination": "^1.1.4",
  73. "react-hook-form": "^7.51.4",
  74. "react-i18next": "^12.2.0",
  75. "react-infinite-scroll-component": "^6.1.0",
  76. "react-markdown": "^8.0.6",
  77. "react-multi-email": "^1.0.14",
  78. "react-papaparse": "^4.1.0",
  79. "react-slider": "^2.0.4",
  80. "react-sortablejs": "^6.1.4",
  81. "react-syntax-highlighter": "^15.5.0",
  82. "react-tooltip": "5.8.3",
  83. "react-window": "^1.8.9",
  84. "react-window-infinite-loader": "^1.0.9",
  85. "reactflow": "^11.11.3",
  86. "recordrtc": "^5.6.2",
  87. "rehype-katex": "^6.0.2",
  88. "remark-breaks": "^3.0.2",
  89. "remark-gfm": "^3.0.1",
  90. "remark-math": "^5.1.1",
  91. "scheduler": "^0.23.0",
  92. "server-only": "^0.0.1",
  93. "sharp": "^0.33.2",
  94. "sortablejs": "^1.15.0",
  95. "swr": "^2.1.0",
  96. "tailwind-merge": "^2.4.0",
  97. "use-context-selector": "^1.4.1",
  98. "uuid": "^9.0.1",
  99. "zod": "^3.23.6",
  100. "zundo": "^2.1.0",
  101. "zustand": "^4.5.2"
  102. },
  103. "devDependencies": {
  104. "@antfu/eslint-config": "^0.36.0",
  105. "@faker-js/faker": "^7.6.0",
  106. "@rgrove/parse-xml": "^4.1.0",
  107. "@testing-library/dom": "^10.3.2",
  108. "@testing-library/jest-dom": "^6.4.6",
  109. "@testing-library/react": "^16.0.0",
  110. "@types/crypto-js": "^4.1.1",
  111. "@types/dagre": "^0.7.52",
  112. "@types/jest": "^29.5.12",
  113. "@types/js-cookie": "^3.0.3",
  114. "@types/lodash-es": "^4.17.7",
  115. "@types/negotiator": "^0.6.1",
  116. "@types/node": "18.15.0",
  117. "@types/qs": "^6.9.7",
  118. "@types/react": "~18.2.0",
  119. "@types/react-dom": "~18.2.0",
  120. "@types/react-slider": "^1.3.1",
  121. "@types/react-syntax-highlighter": "^15.5.6",
  122. "@types/react-window": "^1.8.5",
  123. "@types/react-window-infinite-loader": "^1.0.6",
  124. "@types/recordrtc": "^5.6.11",
  125. "@types/sortablejs": "^1.15.1",
  126. "@types/uuid": "^9.0.8",
  127. "autoprefixer": "^10.4.14",
  128. "code-inspector-plugin": "^0.13.0",
  129. "cross-env": "^7.0.3",
  130. "eslint": "^8.36.0",
  131. "eslint-config-next": "^14.0.4",
  132. "husky": "^8.0.3",
  133. "jest": "^29.7.0",
  134. "jest-environment-jsdom": "^29.7.0",
  135. "lint-staged": "^13.2.2",
  136. "postcss": "^8.4.31",
  137. "sass": "^1.61.0",
  138. "tailwindcss": "^3.4.4",
  139. "ts-node": "^10.9.2",
  140. "typescript": "4.9.5",
  141. "uglify-js": "^3.17.4"
  142. },
  143. "resolutions": {
  144. "@types/react": "~18.2.0",
  145. "@types/react-dom": "~18.2.0"
  146. },
  147. "lint-staged": {
  148. "**/*.js?(x)": [
  149. "eslint --fix"
  150. ],
  151. "**/*.ts?(x)": [
  152. "eslint --fix"
  153. ]
  154. }
  155. }