package.json 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. {
  2. "name": "@xstate/react",
  3. "version": "3.2.2",
  4. "description": "XState tools for React",
  5. "keywords": [
  6. "state",
  7. "machine",
  8. "statechart",
  9. "scxml",
  10. "state",
  11. "graph",
  12. "react",
  13. "hook"
  14. ],
  15. "author": "David Khourshid <davidkpiano@gmail.com>",
  16. "homepage": "https://github.com/statelyai/xstate/tree/main/packages/xstate-react#readme",
  17. "license": "MIT",
  18. "main": "lib/index.js",
  19. "module": "es/index.js",
  20. "types": "lib/index.d.ts",
  21. "typesVersions": {
  22. "<4.0": {
  23. "lib/index.d.ts": [
  24. "index.v3.d.ts"
  25. ]
  26. }
  27. },
  28. "sideEffects": false,
  29. "directories": {
  30. "lib": "lib",
  31. "test": "test"
  32. },
  33. "files": [
  34. "lib/**/*.js",
  35. "lib/**/*.d.ts",
  36. "dist/**/*.js",
  37. "es/**/*.js",
  38. "es/**/*.d.ts",
  39. "fsm/package.json"
  40. ],
  41. "repository": {
  42. "type": "git",
  43. "url": "git+ssh://git@github.com/statelyai/xstate.git"
  44. },
  45. "scripts": {
  46. "clean": "rm -rf dist lib tsconfig.tsbuildinfo",
  47. "build": "tsc && tsc --outDir es --module es2015 && rollup -c",
  48. "test": "jest",
  49. "prepare": "npm run build"
  50. },
  51. "bugs": {
  52. "url": "https://github.com/statelyai/xstate/issues"
  53. },
  54. "peerDependencies": {
  55. "@xstate/fsm": "^2.0.0",
  56. "react": "^16.8.0 || ^17.0.0 || ^18.0.0",
  57. "xstate": "^4.37.2"
  58. },
  59. "peerDependenciesMeta": {
  60. "@xstate/fsm": {
  61. "optional": true
  62. },
  63. "xstate": {
  64. "optional": true
  65. }
  66. },
  67. "dependencies": {
  68. "use-isomorphic-layout-effect": "^1.1.2",
  69. "use-sync-external-store": "^1.0.0"
  70. },
  71. "devDependencies": {
  72. "@rollup/plugin-commonjs": "^17.0.0",
  73. "@rollup/plugin-node-resolve": "^11.0.1",
  74. "@testing-library/react": "^13.0.0",
  75. "@types/jsdom": "^12.2.3",
  76. "@types/react": "^17.0.43",
  77. "@types/react-dom": "^17.0.14",
  78. "@types/use-sync-external-store": "^0.0.3",
  79. "@xstate/fsm": "*",
  80. "jest": "^26.6.3",
  81. "jsdom": "^14.0.0",
  82. "jsdom-global": "^3.0.2",
  83. "lerna-alias": "3.0.3-0",
  84. "react": "^18.0.0",
  85. "react-dom": "^18.0.0",
  86. "rollup": "^2.69.0",
  87. "rollup-plugin-replace": "^2.2.0",
  88. "rollup-plugin-terser": "^5.1.2",
  89. "rollup-plugin-typescript2": "^0.30.0",
  90. "ts-jest": "^26.5.6",
  91. "typescript": "^4.8.4",
  92. "xstate": "*"
  93. }
  94. }