package.json 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. {
  2. "name": "use-resize-observer",
  3. "version": "9.1.0",
  4. "main": "dist/bundle.cjs.js",
  5. "module": "dist/bundle.esm.js",
  6. "types": "dist/index.d.ts",
  7. "sideEffects": false,
  8. "repository": "git@github.com:ZeeCoder/use-resize-observer.git",
  9. "description": "A React hook that allows you to use a ResizeObserver to measure an element's size.",
  10. "author": "Viktor Hubert <contact@hubertviktor.com>",
  11. "license": "MIT",
  12. "keywords": [
  13. "react",
  14. "hook",
  15. "react hook",
  16. "resize observer",
  17. "resize observer hook",
  18. "resize observer react hook",
  19. "use-resize-observer",
  20. "useresizeobserver",
  21. "resize hook",
  22. "size hook",
  23. "container query",
  24. "css in js",
  25. "measure",
  26. "size",
  27. "resize"
  28. ],
  29. "scripts": {
  30. "build": "rollup -c && tsc && rm -rf dist/utils && cp dist/index.d.ts polyfilled.d.ts",
  31. "watch": "KARMA_BROWSERS=Chrome run-p 'src:watch' 'karma:watch'",
  32. "src:watch": "rollup -c -w",
  33. "check:size": "size-limit",
  34. "check:types": "tsc -p tests",
  35. "check:lint": "eslint src/**",
  36. "test": "run-s 'build' 'check:size' 'check:types' 'check:lint' 'test:unit' 'test:create:ssr' 'test:headless:chrome'",
  37. "test:unit": "jest",
  38. "test:create:ssr": "node ./tests/ssr/create-ssr-test.js",
  39. "test:chrome": "KARMA_BROWSERS=Chrome yarn karma:run",
  40. "test:headless:chrome": "KARMA_BROWSERS=ChromeHeadless yarn karma:run",
  41. "test:firefox": "KARMA_BROWSERS=Firefox yarn karma:run",
  42. "test:headless:firefox": "KARMA_BROWSERS=FirefoxHeadless yarn karma:run",
  43. "karma:run": "karma start --singleRun",
  44. "karma:watch": "KARMA_BROWSERS=Chrome karma start",
  45. "prepublish": "yarn build",
  46. "test:bs:all": "run-s 'test:bs:modern' 'test:bs:legacy'",
  47. "test:bs:modern": "KARMA_BROWSERS=modern yarn karma:run",
  48. "test:bs:legacy": "KARMA_BROWSERS=legacy yarn karma:run",
  49. "test:bs:chrome": "KARMA_BROWSERS=bs_chrome_latest yarn karma:run",
  50. "test:bs:firefox": "KARMA_BROWSERS=bs_firefox_latest yarn karma:run",
  51. "test:bs:safari": "KARMA_BROWSERS=bs_safari_13 yarn karma:run",
  52. "test:bs:edge": "KARMA_BROWSERS=bs_edge_latest yarn karma:run",
  53. "test:bs:opera": "KARMA_BROWSERS=bs_opera_latest yarn karma:run",
  54. "test:bs:ie": "KARMA_BROWSERS=bs_ie_11 yarn karma:run",
  55. "test:bs:ios_11": "KARMA_BROWSERS=bs_ios_11 yarn karma:run",
  56. "test:bs:ios_14": "KARMA_BROWSERS=bs_ios_14 yarn karma:run",
  57. "test:bs:samsung": "KARMA_BROWSERS=bs_samsung yarn karma:run",
  58. "prepare": "husky install"
  59. },
  60. "lint-staged": {
  61. "*.{js,ts,md}": [
  62. "prettier --write"
  63. ]
  64. },
  65. "files": [
  66. "dist/*",
  67. "polyfilled*",
  68. "README.md",
  69. "LICENSE",
  70. "CHANGELOG*",
  71. "CONTRIBUTING.md",
  72. "package.json"
  73. ],
  74. "peerDependencies": {
  75. "react": "16.8.0 - 18",
  76. "react-dom": "16.8.0 - 18"
  77. },
  78. "devDependencies": {
  79. "@babel/core": "^7.7.7",
  80. "@babel/plugin-transform-runtime": "^7.9.0",
  81. "@babel/preset-env": "^7.7.7",
  82. "@babel/preset-react": "^7.9.4",
  83. "@babel/preset-typescript": "^7.9.0",
  84. "@rollup/plugin-babel": "^5.2.1",
  85. "@rollup/plugin-inject": "^4.0.1",
  86. "@rollup/plugin-node-resolve": "^13.3.0",
  87. "@semantic-release/changelog": "^6.0.1",
  88. "@semantic-release/commit-analyzer": "^9.0.2",
  89. "@semantic-release/git": "^10.0.1",
  90. "@semantic-release/github": "^8.0.4",
  91. "@semantic-release/npm": "^9.0.1",
  92. "@semantic-release/release-notes-generator": "^10.0.3",
  93. "@size-limit/preset-small-lib": "^5.0.1",
  94. "@testing-library/react": "^13.1.1",
  95. "@types/jest": "^28.1.1",
  96. "@types/karma": "^6.3.1",
  97. "@types/karma-jasmine": "^4.0.1",
  98. "@types/react": "^18.0.8",
  99. "@types/react-dom": "^18.0.3",
  100. "@typescript-eslint/eslint-plugin": "^5.27.1",
  101. "@typescript-eslint/parser": "^5.27.1",
  102. "babel-loader": "^8.1.0",
  103. "delay": "^5.0.0",
  104. "eslint": "^8.17.0",
  105. "eslint-plugin-react-hooks": "^4.5.0",
  106. "husky": "^8.0.1",
  107. "jest": "^28.1.1",
  108. "jest-environment-jsdom": "^28.1.1",
  109. "karma": "^6.3.4",
  110. "karma-browserstack-launcher": "^1.6.0",
  111. "karma-chrome-launcher": "^3.0.0",
  112. "karma-firefox-launcher": "^2.1.1",
  113. "karma-jasmine": "^4.0.0",
  114. "karma-sourcemap-loader": "^0.3.7",
  115. "karma-spec-reporter": "^0.0.34",
  116. "karma-webpack": "^5.0.0",
  117. "lint-staged": "^13.0.1",
  118. "npm-run-all": "^4.1.5",
  119. "prettier": "^2.0.4",
  120. "react": "^18.0.0",
  121. "react-app-polyfill": "^3.0.0",
  122. "react-dom": "^18.0.0",
  123. "rollup": "^2.6.1",
  124. "semantic-release": "^19.0.3",
  125. "size-limit": "^5.0.1",
  126. "ts-jest": "^28.0.4",
  127. "typescript": "^4.3.5",
  128. "webpack": "^4.1"
  129. },
  130. "dependencies": {
  131. "@juggle/resize-observer": "^3.3.1"
  132. }
  133. }