package.json 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. {
  2. "name": "react-floater",
  3. "version": "0.7.9",
  4. "description": "Floaters everywhere!",
  5. "author": "Gil Barbara <gilbarbara@gmail.com>",
  6. "repository": {
  7. "type": "git",
  8. "url": "git+https://github.com/gilbarbara/react-floater.git"
  9. },
  10. "bugs": {
  11. "url": "https://github.com/gilbarbara/react-floater/issues"
  12. },
  13. "homepage": "https://github.com/gilbarbara/react-floater#readme",
  14. "main": "lib/index.js",
  15. "module": "es/index.js",
  16. "files": [
  17. "es",
  18. "lib",
  19. "types/*.ts"
  20. ],
  21. "types": "./types/index.d.ts",
  22. "keywords": [
  23. "react",
  24. "react-component",
  25. "component",
  26. "tooltip",
  27. "modal",
  28. "popup",
  29. "alert",
  30. "notification"
  31. ],
  32. "license": "MIT",
  33. "peerDependencies": {
  34. "react": "15 - 18",
  35. "react-dom": "15 - 18"
  36. },
  37. "dependencies": {
  38. "deepmerge": "^4.3.1",
  39. "is-lite": "^0.8.2",
  40. "popper.js": "^1.16.0",
  41. "prop-types": "^15.8.1",
  42. "tree-changes": "^0.9.1"
  43. },
  44. "devDependencies": {
  45. "@babel/cli": "7.23.4",
  46. "@babel/core": "7.23.5",
  47. "@babel/eslint-parser": "^7.23.3",
  48. "@babel/plugin-external-helpers": "7.23.3",
  49. "@babel/plugin-proposal-class-properties": "7.17.12",
  50. "@babel/plugin-proposal-decorators": "7.23.5",
  51. "@babel/plugin-proposal-do-expressions": "7.23.3",
  52. "@babel/plugin-proposal-export-default-from": "7.23.3",
  53. "@babel/plugin-proposal-export-namespace-from": "7.17.12",
  54. "@babel/plugin-proposal-function-bind": "7.23.3",
  55. "@babel/plugin-proposal-function-sent": "7.23.3",
  56. "@babel/plugin-proposal-json-strings": "7.17.12",
  57. "@babel/plugin-proposal-logical-assignment-operators": "7.17.12",
  58. "@babel/plugin-proposal-nullish-coalescing-operator": "7.17.12",
  59. "@babel/plugin-proposal-numeric-separator": "7.16.7",
  60. "@babel/plugin-proposal-optional-chaining": "7.17.12",
  61. "@babel/plugin-proposal-pipeline-operator": "7.23.3",
  62. "@babel/plugin-proposal-throw-expressions": "7.23.3",
  63. "@babel/plugin-syntax-dynamic-import": "7.8.3",
  64. "@babel/plugin-syntax-import-meta": "7.10.4",
  65. "@babel/plugin-transform-flow-strip-types": "7.23.3",
  66. "@babel/preset-env": "7.23.5",
  67. "@babel/preset-flow": "7.23.3",
  68. "@babel/preset-react": "7.23.3",
  69. "@rollup/plugin-commonjs": "^22.0.0",
  70. "@rollup/plugin-node-resolve": "^13.3.0",
  71. "@size-limit/preset-small-lib": "^11.0.1",
  72. "@types/react": "^17.0.46",
  73. "autoprefixer": "^10.4.16",
  74. "babel-core": "^7.0.0-bridge.0",
  75. "babel-eslint": "^10.0.3",
  76. "babel-plugin-array-includes": "^2.0.3",
  77. "babel-plugin-transform-node-env-inline": "^0.4.3",
  78. "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
  79. "cross-env": "^7.0.3",
  80. "dtslint": "^4.2.1",
  81. "enzyme": "^3.11.0",
  82. "enzyme-adapter-react-16": "^1.15.7",
  83. "enzyme-to-json": "^3.6.2",
  84. "eslint": "^8.55.0",
  85. "eslint-config-airbnb": "^19.0.4",
  86. "eslint-config-prettier": "^9.1.0",
  87. "eslint-plugin-babel": "^5.3.1",
  88. "eslint-plugin-flowtype": "^8.0.3",
  89. "eslint-plugin-import": "^2.29.0",
  90. "eslint-plugin-jsx-a11y": "^6.8.0",
  91. "eslint-plugin-prettier": "^5.0.1",
  92. "eslint-plugin-react": "^7.33.2",
  93. "flow-bin": "^0.113.0",
  94. "husky": "^8.0.3",
  95. "is-ci-cli": "^2.2.0",
  96. "jest": "^29.7.0",
  97. "jest-environment-jsdom": "^29.7.0",
  98. "jest-enzyme": "^7.1.2",
  99. "jest-extended": "^4.0.2",
  100. "jest-watch-typeahead": "^2.2.2",
  101. "lint-staged": "^15.2.0",
  102. "prettier": "^3.1.0",
  103. "prop-types": "^15.8.1",
  104. "react": "^16.14.0",
  105. "react-dom": "^16.14.0",
  106. "repo-tools": "^0.3.1",
  107. "rimraf": "^5.0.5",
  108. "rollup": "^2.75.6",
  109. "rollup-plugin-babel": "^4.3.3",
  110. "size-limit": "^11.0.1",
  111. "styled-components": "^6.1.1",
  112. "watch-run": "^1.2.5"
  113. },
  114. "scripts": {
  115. "build": "npm run clean && npm run build:base && npm run build:umd",
  116. "build:base": "cross-env NODE_ENV=production rollup -c",
  117. "build:umd": "cross-env NODE_ENV=production rollup -c rollup.config.umd.js",
  118. "watch": "rollup -cw",
  119. "clean": "rimraf es && rimraf lib",
  120. "lint": "eslint --ext .js --ext .jsx src test",
  121. "test": "is-ci \"test:coverage\" \"test:watch\"",
  122. "test:coverage": "jest --bail --coverage",
  123. "test:watch": "jest --watchAll --verbose",
  124. "validate": "npm run lint && npm run test:coverage && flow && npm run build && npm run size",
  125. "format": "prettier \"**/*.{js,jsx,ts}\" --write",
  126. "size": "size-limit",
  127. "prepublishOnly": "npm run validate"
  128. },
  129. "size-limit": [
  130. {
  131. "name": "esm",
  132. "path": "./es/index.js",
  133. "limit": "20 kB"
  134. },
  135. {
  136. "name": "commonjs",
  137. "path": "./lib/index.js",
  138. "limit": "20 kB"
  139. }
  140. ],
  141. "prettier": {
  142. "jsxBracketSameLine": false,
  143. "arrowParens": "avoid",
  144. "printWidth": 100,
  145. "singleQuote": true,
  146. "trailingComma": "all"
  147. },
  148. "lint-staged": {
  149. "*.js?(x)": [
  150. "eslint --fix",
  151. "git add",
  152. "jest --findRelatedTests"
  153. ],
  154. "*.(js|jsx|json|yml|yaml|css|less|scss|ts|tsx|md|graphql|mdx)": [
  155. "prettier --write",
  156. "git add"
  157. ]
  158. }
  159. }