package.json 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. "name": "@astrojs/preact",
  3. "description": "Use Preact components within Astro",
  4. "version": "3.1.0",
  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/preact"
  13. },
  14. "keywords": [
  15. "astro-integration",
  16. "astro-component",
  17. "renderer",
  18. "preact"
  19. ],
  20. "bugs": "https://github.com/withastro/astro/issues",
  21. "homepage": "https://docs.astro.build/en/guides/integrations-guide/preact/",
  22. "exports": {
  23. ".": "./dist/index.js",
  24. "./client.js": "./dist/client.js",
  25. "./client-dev.js": "./dist/client-dev.js",
  26. "./server.js": "./dist/server.js",
  27. "./package.json": "./package.json"
  28. },
  29. "files": [
  30. "dist"
  31. ],
  32. "scripts": {
  33. "build": "astro-scripts build \"src/**/*.ts\" && tsc",
  34. "build:ci": "astro-scripts build \"src/**/*.ts\"",
  35. "dev": "astro-scripts dev \"src/**/*.ts\""
  36. },
  37. "dependencies": {
  38. "@babel/plugin-transform-react-jsx": "^7.22.5",
  39. "@babel/plugin-transform-react-jsx-development": "^7.22.5",
  40. "@preact/preset-vite": "^2.7.0",
  41. "@preact/signals": "^1.2.1",
  42. "babel-plugin-transform-hook-names": "^1.0.2",
  43. "preact-render-to-string": "^6.3.1",
  44. "preact-ssr-prepass": "^1.2.1"
  45. },
  46. "devDependencies": {
  47. "astro": "workspace:*",
  48. "astro-scripts": "workspace:*",
  49. "preact": "^10.19.2"
  50. },
  51. "peerDependencies": {
  52. "preact": "^10.6.5"
  53. },
  54. "engines": {
  55. "node": ">=18.14.1"
  56. },
  57. "publishConfig": {
  58. "provenance": true
  59. }
  60. }