[d565449] | 1 | {
|
---|
| 2 | "name": "react-use",
|
---|
| 3 | "version": "17.5.1",
|
---|
| 4 | "description": "Collection of React Hooks",
|
---|
| 5 | "main": "lib/index.js",
|
---|
| 6 | "module": "esm/index.js",
|
---|
| 7 | "sideEffects": false,
|
---|
| 8 | "files": [
|
---|
| 9 | "lib/",
|
---|
| 10 | "esm/"
|
---|
| 11 | ],
|
---|
| 12 | "types": "lib/index.d.ts",
|
---|
| 13 | "typings": "lib/index.d.ts",
|
---|
| 14 | "scripts": {
|
---|
| 15 | "start": "yarn storybook",
|
---|
| 16 | "test": "jest --maxWorkers 2",
|
---|
| 17 | "test:ssr": "jest --maxWorkers 2 --config ./jest.config.node.ts",
|
---|
| 18 | "test:watch": "jest --watch",
|
---|
| 19 | "test:coverage": "jest --coverage",
|
---|
| 20 | "lint": "eslint \"{src,tests,stories}/**/*.{ts,tsx}\"",
|
---|
| 21 | "lint:fix": "yarn lint --fix",
|
---|
| 22 | "lint:types": "tsc --noEmit",
|
---|
| 23 | "build:cjs": "tsc",
|
---|
| 24 | "build:es": "tsc -m esNext --outDir esm",
|
---|
| 25 | "build": "yarn build:cjs && yarn build:es",
|
---|
| 26 | "clean": "rimraf lib storybook-static esm",
|
---|
| 27 | "storybook": "start-storybook -p 6008",
|
---|
| 28 | "storybook:build": "build-storybook",
|
---|
| 29 | "storybook:upload": "gh-pages -d storybook-static --git \"$(which git)\"",
|
---|
| 30 | "storybook:clean": "rimraf storybook-static",
|
---|
| 31 | "release": "semantic-release"
|
---|
| 32 | },
|
---|
| 33 | "husky": {
|
---|
| 34 | "hooks": {
|
---|
| 35 | "pre-commit": "lint-staged",
|
---|
| 36 | "pre-push": "yarn lint && yarn clean && yarn build && yarn test"
|
---|
| 37 | }
|
---|
| 38 | },
|
---|
| 39 | "author": "@streamich",
|
---|
| 40 | "license": "Unlicense",
|
---|
| 41 | "repository": {
|
---|
| 42 | "type": "git",
|
---|
| 43 | "url": "https://github.com/streamich/react-use"
|
---|
| 44 | },
|
---|
| 45 | "bugs": {
|
---|
| 46 | "url": "https://github.com/streamich/react-use/issues"
|
---|
| 47 | },
|
---|
| 48 | "homepage": "https://github.com/streamich/react-use#readme",
|
---|
| 49 | "dependencies": {
|
---|
| 50 | "@types/js-cookie": "^2.2.6",
|
---|
| 51 | "@xobotyi/scrollbar-width": "^1.9.5",
|
---|
| 52 | "copy-to-clipboard": "^3.3.1",
|
---|
| 53 | "fast-deep-equal": "^3.1.3",
|
---|
| 54 | "fast-shallow-equal": "^1.0.0",
|
---|
| 55 | "js-cookie": "^2.2.1",
|
---|
| 56 | "nano-css": "^5.6.2",
|
---|
| 57 | "react-universal-interface": "^0.6.2",
|
---|
| 58 | "resize-observer-polyfill": "^1.5.1",
|
---|
| 59 | "screenfull": "^5.1.0",
|
---|
| 60 | "set-harmonic-interval": "^1.0.1",
|
---|
| 61 | "throttle-debounce": "^3.0.1",
|
---|
| 62 | "ts-easing": "^0.2.0",
|
---|
| 63 | "tslib": "^2.1.0"
|
---|
| 64 | },
|
---|
| 65 | "peerDependencies": {
|
---|
| 66 | "react": "*",
|
---|
| 67 | "react-dom": "*"
|
---|
| 68 | },
|
---|
| 69 | "devDependencies": {
|
---|
| 70 | "@babel/core": "7.20.2",
|
---|
| 71 | "@babel/plugin-syntax-dynamic-import": "7.8.3",
|
---|
| 72 | "@babel/preset-env": "7.20.2",
|
---|
| 73 | "@babel/preset-react": "7.18.6",
|
---|
| 74 | "@babel/preset-typescript": "7.18.6",
|
---|
| 75 | "@semantic-release/changelog": "5.0.1",
|
---|
| 76 | "@semantic-release/git": "9.0.1",
|
---|
| 77 | "@semantic-release/npm": "7.1.3",
|
---|
| 78 | "@shopify/jest-dom-mocks": "2.11.7",
|
---|
| 79 | "@storybook/addon-actions": "6.4.9",
|
---|
| 80 | "@storybook/addon-knobs": "6.2.9",
|
---|
| 81 | "@storybook/addon-notes": "5.3.21",
|
---|
| 82 | "@storybook/addon-options": "5.3.21",
|
---|
| 83 | "@storybook/react": "6.4.9",
|
---|
| 84 | "@testing-library/react": "12.1.2",
|
---|
| 85 | "@testing-library/react-hooks": "7.0.2",
|
---|
| 86 | "@types/jest": "27.5.2",
|
---|
| 87 | "@types/react": "17.0.0",
|
---|
| 88 | "@typescript-eslint/eslint-plugin": "5.6.0",
|
---|
| 89 | "@typescript-eslint/parser": "5.6.0",
|
---|
| 90 | "babel-core": "6.26.3",
|
---|
| 91 | "babel-eslint": "10.1.0",
|
---|
| 92 | "babel-loader": "8.3.0",
|
---|
| 93 | "babel-plugin-dynamic-import-node": "2.3.3",
|
---|
| 94 | "eslint": "8.28.0",
|
---|
| 95 | "eslint-config-prettier": "8.5.0",
|
---|
| 96 | "eslint-config-react-app": "6.0.0",
|
---|
| 97 | "eslint-plugin-flowtype": "8.0.3",
|
---|
| 98 | "eslint-plugin-import": "2.26.0",
|
---|
| 99 | "eslint-plugin-jsx-a11y": "6.6.1",
|
---|
| 100 | "eslint-plugin-prettier": "4.2.1",
|
---|
| 101 | "eslint-plugin-react": "7.31.11",
|
---|
| 102 | "eslint-plugin-react-hooks": "4.6.0",
|
---|
| 103 | "fork-ts-checker-webpack-plugin": "6.5.2",
|
---|
| 104 | "gh-pages": "3.2.3",
|
---|
| 105 | "husky": "7.0.4",
|
---|
| 106 | "jest": "26.6.3",
|
---|
| 107 | "jest-localstorage-mock": "2.4.22",
|
---|
| 108 | "keyboardjs": "2.7.0",
|
---|
| 109 | "lint-staged": "12.5.0",
|
---|
| 110 | "markdown-loader": "6.0.0",
|
---|
| 111 | "prettier": "2.3.0",
|
---|
| 112 | "raf-stub": "3.0.0",
|
---|
| 113 | "react": "17.0.2",
|
---|
| 114 | "react-dom": "17.0.2",
|
---|
| 115 | "react-frame-component": "5.2.3",
|
---|
| 116 | "react-spring": "9.5.5",
|
---|
| 117 | "react-test-renderer": "17.0.2",
|
---|
| 118 | "rebound": "0.1.0",
|
---|
| 119 | "redux-logger": "3.0.6",
|
---|
| 120 | "redux-thunk": "2.4.2",
|
---|
| 121 | "rimraf": "3.0.2",
|
---|
| 122 | "rxjs": "7.5.7",
|
---|
| 123 | "semantic-release": "17.4.7",
|
---|
| 124 | "ts-jest": "26.5.6",
|
---|
| 125 | "ts-loader": "8.4.0",
|
---|
| 126 | "ts-node": "10.9.1",
|
---|
| 127 | "typescript": "4.1.5"
|
---|
| 128 | },
|
---|
| 129 | "config": {
|
---|
| 130 | "commitizen": {
|
---|
| 131 | "path": "git-cz"
|
---|
| 132 | }
|
---|
| 133 | },
|
---|
| 134 | "release": {
|
---|
| 135 | "branches": [
|
---|
| 136 | "master",
|
---|
| 137 | {
|
---|
| 138 | "name": "next",
|
---|
| 139 | "prerelease": "rc"
|
---|
| 140 | }
|
---|
| 141 | ],
|
---|
| 142 | "verifyConditions": [
|
---|
| 143 | "@semantic-release/changelog",
|
---|
| 144 | "@semantic-release/npm",
|
---|
| 145 | "@semantic-release/git"
|
---|
| 146 | ],
|
---|
| 147 | "prepare": [
|
---|
| 148 | "@semantic-release/changelog",
|
---|
| 149 | "@semantic-release/npm",
|
---|
| 150 | "@semantic-release/git"
|
---|
| 151 | ]
|
---|
| 152 | },
|
---|
| 153 | "lint-staged": {
|
---|
| 154 | "src/**/**/*.{ts,tsx}": [
|
---|
| 155 | "eslint --fix",
|
---|
| 156 | "git add"
|
---|
| 157 | ]
|
---|
| 158 | },
|
---|
| 159 | "volta": {
|
---|
| 160 | "node": "14.21.1",
|
---|
| 161 | "yarn": "1.22.19"
|
---|
| 162 | },
|
---|
| 163 | "collective": {
|
---|
| 164 | "type": "opencollective",
|
---|
| 165 | "url": "https://opencollective.com/react-use"
|
---|
| 166 | }
|
---|
| 167 | }
|
---|