{ "name": "react-use", "version": "13.14.1", "description": "Collection of React Hooks", "main": "lib/index.js", "module": "esm/index.js", "sideEffects": false, "files": [ "lib/", "esm/" ], "types": "lib/index.d.ts", "typings": "lib/index.d.ts", "scripts": { "start": "yarn storybook", "test": "jest --maxWorkers 2", "test:watch": "jest --watch", "test:coverage": "jest --coverage", "lint": "tslint '{src,tests}/**/*.{ts,tsx}' -t verbose", "lint:fix": "yarn lint --fix", "lint:types": "tsc --noEmit", "build:cjs": "tsc", "build:es": "tsc -m esNext --outDir esm", "build": "yarn build:cjs && yarn build:es", "clean": "rimraf lib storybook-static esm", "storybook": "start-storybook -p 6008", "storybook:build": "build-storybook", "storybook:upload": "gh-pages -d storybook-static --git \"$(which git)\"", "storybook:clean": "rimraf storybook-static", "release": "semantic-release" }, "husky": { "hooks": { "pre-commit": "yarn lint:types && lint-staged", "pre-push": "yarn lint && yarn clean && yarn build && yarn test" } }, "author": "@streamich", "license": "Unlicense", "repository": { "type": "git", "url": "https://github.com/streamich/react-use" }, "bugs": { "url": "https://github.com/streamich/react-use/issues" }, "homepage": "https://github.com/streamich/react-use#readme", "dependencies": { "@xobotyi/scrollbar-width": "1.5.0", "copy-to-clipboard": "^3.2.0", "fast-shallow-equal": "^0.1.1", "nano-css": "^5.2.1", "react-fast-compare": "^2.0.4", "resize-observer-polyfill": "^1.5.1", "screenfull": "^5.0.0", "set-harmonic-interval": "^1.0.1", "throttle-debounce": "^2.1.0", "ts-easing": "^0.2.0", "tslib": "^1.10.0" }, "peerDependencies": { "react": "^16.8.0", "react-dom": "^16.8.0" }, "devDependencies": { "@babel/core": "7.7.7", "@babel/plugin-syntax-dynamic-import": "7.7.4", "@babel/preset-env": "7.7.7", "@babel/preset-react": "7.7.4", "@babel/preset-typescript": "7.7.7", "@semantic-release/changelog": "3.0.6", "@semantic-release/git": "7.0.18", "@semantic-release/npm": "5.3.5", "@shopify/jest-dom-mocks": "2.8.7", "@storybook/addon-actions": "5.2.8", "@storybook/addon-knobs": "5.2.8", "@storybook/addon-notes": "5.2.8", "@storybook/addon-options": "5.2.8", "@storybook/react": "5.2.8", "@testing-library/react-hooks": "3.2.1", "@types/jest": "24.0.25", "@types/react": "16.9.11", "babel-core": "6.26.3", "babel-loader": "8.0.6", "babel-plugin-dynamic-import-node": "2.3.0", "fork-ts-checker-webpack-plugin": "3.1.1", "gh-pages": "2.2.0", "husky": "3.1.0", "jest": "24.9.0", "keyboardjs": "2.5.1", "lint-staged": "9.5.0", "markdown-loader": "5.1.0", "prettier": "1.19.1", "raf-stub": "3.0.0", "react": "16.12.0", "react-dom": "16.12.0", "react-frame-component": "4.1.1", "react-spring": "8.0.27", "react-test-renderer": "16.12.0", "rebound": "0.1.0", "redux-logger": "3.0.6", "redux-thunk": "2.3.0", "rimraf": "3.0.0", "rxjs": "6.5.4", "semantic-release": "15.14.0", "ts-jest": "24.3.0", "ts-loader": "6.2.1", "ts-node": "8.5.4", "tslint": "6.0.0-beta1", "tslint-config-prettier": "1.18.0", "tslint-eslint-rules": "5.4.0", "tslint-plugin-prettier": "2.1.0", "tslint-react": "4.1.0", "typescript": "3.7.4" }, "config": { "commitizen": { "path": "git-cz" } }, "release": { "branches": [ "master", { "name": "next", "prerelease": "rc" } ], "verifyConditions": [ "@semantic-release/changelog", "@semantic-release/npm", "@semantic-release/git" ], "prepare": [ "@semantic-release/changelog", "@semantic-release/npm", "@semantic-release/git" ] }, "lint-staged": { "src/**/*.{ts,tsx}": [ "tslint --fix -t verbose", "git add" ] }, "volta": { "node": "10.18.0", "yarn": "1.21.1" }, "collective": { "type": "opencollective", "url": "https://opencollective.com/react-use" }, "jest": { "preset": "ts-jest", "clearMocks": true, "coverageDirectory": "coverage", "testMatch": [ "/tests/**/*.test.(ts|tsx)" ] } }