{ "name": "react-use", "version": "14.0.0-alpha.2", "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": { "@types/js-cookie": "2.2.4", "@xobotyi/scrollbar-width": "1.8.2", "copy-to-clipboard": "^3.2.0", "fast-shallow-equal": "^1.0.0", "js-cookie": "^2.2.1", "nano-css": "^5.2.1", "react-fast-compare": "^2.0.4", "react-universal-interface": "^0.6.0", "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.8.4", "@babel/plugin-syntax-dynamic-import": "7.8.3", "@babel/preset-env": "7.8.4", "@babel/preset-react": "7.8.3", "@babel/preset-typescript": "7.8.3", "@semantic-release/changelog": "5.0.0", "@semantic-release/git": "9.0.0", "@semantic-release/npm": "7.0.2", "@shopify/jest-dom-mocks": "2.8.9", "@storybook/addon-actions": "5.3.9", "@storybook/addon-knobs": "5.3.9", "@storybook/addon-notes": "5.3.9", "@storybook/addon-options": "5.3.9", "@storybook/react": "5.3.9", "@testing-library/react-hooks": "3.2.1", "@types/jest": "25.1.1", "@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": "4.0.3", "gh-pages": "2.2.0", "husky": "4.2.1", "jest": "25.1.0", "jest-localstorage-mock": "2.4.0", "keyboardjs": "2.5.1", "lint-staged": "10.0.7", "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.1", "rxjs": "6.5.4", "semantic-release": "17.0.2", "ts-jest": "25.2.0", "ts-loader": "6.2.1", "ts-node": "8.6.2", "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.5" }, "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.1", "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)" ], "setupFiles": [ "/tests/_setup.js", "./tests/setupTests.ts" ] } }