package.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. "name": "openhands-frontend",
  3. "version": "0.9.6",
  4. "private": true,
  5. "type": "module",
  6. "engines": {
  7. "node": ">=14.8.0"
  8. },
  9. "dependencies": {
  10. "@monaco-editor/react": "^4.6.0",
  11. "@nextui-org/react": "^2.4.8",
  12. "@react-types/shared": "^3.24.1",
  13. "@reduxjs/toolkit": "^2.2.7",
  14. "@vitejs/plugin-react": "^4.3.1",
  15. "@xterm/addon-fit": "^0.10.0",
  16. "@xterm/xterm": "^5.4.0",
  17. "clsx": "^2.1.1",
  18. "eslint-config-airbnb-typescript": "^18.0.0",
  19. "i18next": "^23.15.1",
  20. "i18next-browser-languagedetector": "^8.0.0",
  21. "i18next-http-backend": "^2.6.1",
  22. "jose": "^5.9.3",
  23. "monaco-editor": "^0.52.0",
  24. "react": "^18.3.1",
  25. "react-dom": "^18.3.1",
  26. "react-highlight": "^0.15.0",
  27. "react-hot-toast": "^2.4.1",
  28. "react-i18next": "^15.0.2",
  29. "react-icons": "^5.3.0",
  30. "react-markdown": "^9.0.1",
  31. "react-redux": "^9.1.2",
  32. "react-syntax-highlighter": "^15.5.0",
  33. "remark-gfm": "^4.0.0",
  34. "tailwind-merge": "^2.5.2",
  35. "vite": "^5.4.8",
  36. "web-vitals": "^3.5.2"
  37. },
  38. "scripts": {
  39. "start": "npm run make-i18n && vite",
  40. "build": "npm run make-i18n && tsc && vite build",
  41. "test": "vitest run",
  42. "test:coverage": "npm run make-i18n && vitest run --coverage",
  43. "dev_wsl": "VITE_WATCH_USE_POLLING=true vite",
  44. "preview": "vite preview",
  45. "make-i18n": "node scripts/make-i18n-translations.cjs",
  46. "prelint": "npm run make-i18n",
  47. "lint": "eslint src --ext .ts,.tsx,.js && prettier --check src/**/*.{ts,tsx}",
  48. "lint:fix": "eslint src --ext .ts,.tsx,.js --fix && prettier --write src/**/*.{ts,tsx}",
  49. "prepare": "cd .. && husky frontend/.husky"
  50. },
  51. "husky": {
  52. "hooks": {
  53. "pre-commit": "npm run test && lint-staged"
  54. }
  55. },
  56. "lint-staged": {
  57. "src/**/*.{ts,tsx,js}": [
  58. "eslint --fix",
  59. "prettier --write"
  60. ]
  61. },
  62. "devDependencies": {
  63. "@tailwindcss/typography": "^0.5.15",
  64. "@testing-library/jest-dom": "^6.5.0",
  65. "@testing-library/react": "^16.0.1",
  66. "@testing-library/user-event": "^14.5.2",
  67. "@types/node": "^22.7.3",
  68. "@types/react": "^18.3.9",
  69. "@types/react-dom": "^18.3.0",
  70. "@types/react-highlight": "^0.12.8",
  71. "@types/react-syntax-highlighter": "^15.5.13",
  72. "@typescript-eslint/eslint-plugin": "^7.18.0",
  73. "@typescript-eslint/parser": "^7.18.0",
  74. "@vitest/coverage-v8": "^1.6.0",
  75. "autoprefixer": "^10.4.20",
  76. "eslint": "^8.57.0",
  77. "eslint-config-airbnb": "^19.0.4",
  78. "eslint-config-airbnb-typescript": "^18.0.0",
  79. "eslint-config-prettier": "^9.1.0",
  80. "eslint-plugin-import": "^2.29.1",
  81. "eslint-plugin-jsx-a11y": "^6.9.0",
  82. "eslint-plugin-prettier": "^5.2.1",
  83. "eslint-plugin-react": "^7.35.0",
  84. "eslint-plugin-react-hooks": "^4.6.2",
  85. "husky": "^9.1.6",
  86. "jsdom": "^25.0.1",
  87. "lint-staged": "^15.2.10",
  88. "postcss": "^8.4.47",
  89. "prettier": "^3.3.3",
  90. "tailwindcss": "^3.4.13",
  91. "typescript": "^5.6.2",
  92. "vite-tsconfig-paths": "^5.0.1",
  93. "vitest": "^1.6.0"
  94. },
  95. "packageManager": "npm@10.5.0",
  96. "volta": {
  97. "node": "18.20.1"
  98. }
  99. }