package.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. {
  2. "name": "framer-motion",
  3. "version": "12.7.3",
  4. "description": "A simple and powerful JavaScript animation library",
  5. "main": "dist/cjs/index.js",
  6. "module": "dist/es/index.mjs",
  7. "exports": {
  8. ".": {
  9. "types": "./dist/types/index.d.ts",
  10. "require": "./dist/cjs/index.js",
  11. "import": "./dist/es/index.mjs",
  12. "default": "./dist/cjs/index.js"
  13. },
  14. "./debug": {
  15. "types": "./dist/debug.d.ts",
  16. "require": "./dist/cjs/debug.js",
  17. "import": "./dist/es/debug.mjs",
  18. "default": "./dist/cjs/debug.js"
  19. },
  20. "./dom/mini": {
  21. "types": "./dist/dom-mini.d.ts",
  22. "require": "./dist/cjs/dom-mini.js",
  23. "import": "./dist/es/dom-mini.mjs",
  24. "default": "./dist/cjs/dom-mini.js"
  25. },
  26. "./dom": {
  27. "types": "./dist/dom.d.ts",
  28. "require": "./dist/cjs/dom.js",
  29. "import": "./dist/es/dom.mjs",
  30. "default": "./dist/cjs/dom.js"
  31. },
  32. "./client": {
  33. "types": "./dist/types/client.d.ts",
  34. "require": "./dist/cjs/client.js",
  35. "import": "./dist/es/client.mjs",
  36. "default": "./dist/cjs/client.js"
  37. },
  38. "./m": {
  39. "types": "./dist/m.d.ts",
  40. "require": "./dist/cjs/m.js",
  41. "import": "./dist/es/m.mjs",
  42. "default": "./dist/cjs/m.js"
  43. },
  44. "./mini": {
  45. "types": "./dist/mini.d.ts",
  46. "require": "./dist/cjs/mini.js",
  47. "import": "./dist/es/mini.mjs",
  48. "default": "./dist/cjs/mini.js"
  49. },
  50. "./projection": {
  51. "import": "./dist/es/projection.mjs",
  52. "default": "./dist/es/projection.mjs"
  53. },
  54. "./package.json": "./package.json"
  55. },
  56. "types": "dist/types/index.d.ts",
  57. "author": "Matt Perry",
  58. "license": "MIT",
  59. "repository": "https://github.com/motiondivision/motion/",
  60. "sideEffects": false,
  61. "keywords": [
  62. "react animation",
  63. "react",
  64. "pose",
  65. "react pose",
  66. "animation",
  67. "gestures",
  68. "drag",
  69. "spring",
  70. "popmotion",
  71. "framer",
  72. "waapi"
  73. ],
  74. "scripts": {
  75. "eslint": "yarn run lint",
  76. "lint": "yarn eslint src/**/*.ts",
  77. "build": "yarn clean && tsc --noEmitOnError -p . && rollup -c && node ./scripts/check-bundle.js",
  78. "dev": "yarn watch",
  79. "clean": "rm -rf types dist lib",
  80. "test": "yarn test-server && yarn test-client",
  81. "test-client": "jest --config jest.config.json --max-workers=2",
  82. "test-server": "jest --config jest.config.ssr.json",
  83. "prettier": "prettier ./src/* --write",
  84. "watch": "concurrently -c blue,red -n tsc --noEmitOnError ,rollup --kill-others \"tsc --noEmitOnError --watch -p . --preserveWatchOutput\" \"rollup --config --watch --no-watch.clearScreen\"",
  85. "prepack": "yarn build && yarn measure",
  86. "postpublish": "git push --tags",
  87. "measure": "rollup -c ./rollup.size.config.mjs"
  88. },
  89. "dependencies": {
  90. "motion-dom": "^12.7.3",
  91. "motion-utils": "^12.7.2",
  92. "tslib": "^2.4.0"
  93. },
  94. "devDependencies": {
  95. "@thednp/dommatrix": "^2.0.11",
  96. "@types/three": "0.137.0",
  97. "three": "0.137.0"
  98. },
  99. "peerDependencies": {
  100. "@emotion/is-prop-valid": "*",
  101. "react": "^18.0.0 || ^19.0.0",
  102. "react-dom": "^18.0.0 || ^19.0.0"
  103. },
  104. "peerDependenciesMeta": {
  105. "@emotion/is-prop-valid": {
  106. "optional": true
  107. },
  108. "react": {
  109. "optional": true
  110. },
  111. "react-dom": {
  112. "optional": true
  113. }
  114. },
  115. "bundlesize": [
  116. {
  117. "path": "./dist/size-rollup-motion.js",
  118. "maxSize": "35.1 kB"
  119. },
  120. {
  121. "path": "./dist/size-rollup-m.js",
  122. "maxSize": "6 kB"
  123. },
  124. {
  125. "path": "./dist/size-rollup-dom-animation.js",
  126. "maxSize": "17.9 kB"
  127. },
  128. {
  129. "path": "./dist/size-rollup-dom-max.js",
  130. "maxSize": "29.8 kB"
  131. },
  132. {
  133. "path": "./dist/size-rollup-animate.js",
  134. "maxSize": "18.7 kB"
  135. },
  136. {
  137. "path": "./dist/size-rollup-scroll.js",
  138. "maxSize": "5.3 kB"
  139. },
  140. {
  141. "path": "./dist/size-rollup-waapi-animate.js",
  142. "maxSize": "2.7 kB"
  143. }
  144. ],
  145. "gitHead": "b9f31f14292536d6cedd465f38c4df7d71987eca"
  146. }