package.json 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {
  2. "name": "@astrojs/react",
  3. "description": "Use React components within Astro",
  4. "version": "3.0.10",
  5. "type": "module",
  6. "types": "./dist/index.d.ts",
  7. "author": "withastro",
  8. "license": "MIT",
  9. "repository": {
  10. "type": "git",
  11. "url": "https://github.com/withastro/astro.git",
  12. "directory": "packages/integrations/react"
  13. },
  14. "keywords": [
  15. "astro-integration",
  16. "astro-component",
  17. "renderer",
  18. "react"
  19. ],
  20. "bugs": "https://github.com/withastro/astro/issues",
  21. "homepage": "https://docs.astro.build/en/guides/integrations-guide/react/",
  22. "exports": {
  23. ".": "./dist/index.js",
  24. "./client.js": "./client.js",
  25. "./client-v17.js": "./client-v17.js",
  26. "./server.js": "./server.js",
  27. "./server-v17.js": "./server-v17.js",
  28. "./package.json": "./package.json",
  29. "./jsx-runtime": "./jsx-runtime.js"
  30. },
  31. "files": [
  32. "dist",
  33. "client.js",
  34. "client-v17.js",
  35. "context.js",
  36. "jsx-runtime.js",
  37. "server.js",
  38. "server-v17.js",
  39. "static-html.js",
  40. "vnode-children.js"
  41. ],
  42. "scripts": {
  43. "build": "astro-scripts build \"src/**/*.ts\" && tsc",
  44. "build:ci": "astro-scripts build \"src/**/*.ts\"",
  45. "dev": "astro-scripts dev \"src/**/*.ts\"",
  46. "test": "astro-scripts test \"test/**/*.test.js\""
  47. },
  48. "dependencies": {
  49. "@vitejs/plugin-react": "^4.2.0",
  50. "ultrahtml": "^1.3.0"
  51. },
  52. "devDependencies": {
  53. "@types/react": "^18.2.37",
  54. "@types/react-dom": "^18.2.15",
  55. "astro": "workspace:*",
  56. "astro-scripts": "workspace:*",
  57. "cheerio": "1.0.0-rc.12",
  58. "react": "^18.1.0",
  59. "react-dom": "^18.1.0",
  60. "vite": "^5.1.2"
  61. },
  62. "peerDependencies": {
  63. "@types/react": "^17.0.50 || ^18.0.21",
  64. "@types/react-dom": "^17.0.17 || ^18.0.6",
  65. "react": "^17.0.2 || ^18.0.0",
  66. "react-dom": "^17.0.2 || ^18.0.0"
  67. },
  68. "engines": {
  69. "node": ">=18.14.1"
  70. },
  71. "publishConfig": {
  72. "provenance": true
  73. }
  74. }