package.json 4.2 KB

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