package.json 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. {
  2. "name": "react-remove-scroll",
  3. "version": "2.5.5",
  4. "description": "Disables scroll outside of `children` node.",
  5. "main": "dist/es5/index.js",
  6. "jsnext:main": "dist/es2015/index.js",
  7. "module": "dist/es2015/index.js",
  8. "types": "dist/es5/index.d.ts",
  9. "module:es2019": "dist/es2019/index.js",
  10. "scripts": {
  11. "dev": "lib-builder dev",
  12. "test": "jest",
  13. "test:ci": "jest --runInBand --coverage",
  14. "build": "lib-builder build && yarn size:report",
  15. "release": "yarn build && yarn test",
  16. "size": "npx size-limit",
  17. "size:report": "npx size-limit --json > .size.json",
  18. "lint": "lib-builder lint",
  19. "format": "lib-builder format",
  20. "update": "lib-builder update",
  21. "prepublish": "yarn build && yarn changelog",
  22. "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
  23. "changelog:rewrite": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
  24. "storybook": "start-storybook -p 6006"
  25. },
  26. "keywords": [
  27. "scroll"
  28. ],
  29. "author": "Anton Korzunov <thekashey@gmail.com>",
  30. "license": "MIT",
  31. "devDependencies": {
  32. "@types/react": "^18.0.0",
  33. "@babel/core": "^7.17.9",
  34. "@size-limit/preset-small-lib": "^2.1.6",
  35. "@storybook/react": "^6.4.22",
  36. "@theuiteam/lib-builder": "^0.1.4",
  37. "@types/enzyme-adapter-react-16": "^1.0.6",
  38. "babel-loader": "^8.2.4",
  39. "enzyme-adapter-react-16": "^1.15.6"
  40. },
  41. "resolutions": {
  42. "@types/react": "^18.0.0",
  43. "tslib": "^2.1.0"
  44. },
  45. "engines": {
  46. "node": ">=10"
  47. },
  48. "peerDependencies": {
  49. "@types/react": "^16.8.0 || ^17.0.0 || ^18.0.0",
  50. "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
  51. },
  52. "peerDependenciesMeta": {
  53. "@types/react": {
  54. "optional": true
  55. }
  56. },
  57. "files": [
  58. "dist",
  59. "UI",
  60. "sidecar"
  61. ],
  62. "repository": "https://github.com/theKashey/react-remove-scroll",
  63. "dependencies": {
  64. "react-remove-scroll-bar": "^2.3.3",
  65. "react-style-singleton": "^2.2.1",
  66. "tslib": "^2.1.0",
  67. "use-callback-ref": "^1.3.0",
  68. "use-sidecar": "^1.1.2"
  69. },
  70. "sideEffects": [
  71. "**/sidecar.js"
  72. ],
  73. "husky": {
  74. "hooks": {
  75. "pre-commit": "lint-staged"
  76. }
  77. },
  78. "lint-staged": {
  79. "*.{ts,tsx}": [
  80. "prettier --write",
  81. "eslint --fix",
  82. "git add"
  83. ],
  84. "*.{js,css,json,md}": [
  85. "prettier --write",
  86. "git add"
  87. ]
  88. },
  89. "prettier": {
  90. "printWidth": 120,
  91. "trailingComma": "es5",
  92. "tabWidth": 2,
  93. "semi": true,
  94. "singleQuote": true
  95. }
  96. }