mirror of
https://github.com/streamich/react-use.git
synced 2025-12-08 18:02:14 +00:00
168 lines
4.7 KiB
JSON
168 lines
4.7 KiB
JSON
{
|
|
"name": "react-use",
|
|
"version": "17.4.0",
|
|
"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:ssr": "jest --maxWorkers 2 --config ./jest.config.node.ts",
|
|
"test:watch": "jest --watch",
|
|
"test:coverage": "jest --coverage",
|
|
"lint": "eslint \"{src,tests,stories}/**/*.{ts,tsx}\"",
|
|
"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": "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.6",
|
|
"@xobotyi/scrollbar-width": "^1.9.5",
|
|
"copy-to-clipboard": "^3.3.1",
|
|
"fast-deep-equal": "^3.1.3",
|
|
"fast-shallow-equal": "^1.0.0",
|
|
"js-cookie": "^2.2.1",
|
|
"nano-css": "^5.3.1",
|
|
"react-universal-interface": "^0.6.2",
|
|
"resize-observer-polyfill": "^1.5.1",
|
|
"screenfull": "^5.1.0",
|
|
"set-harmonic-interval": "^1.0.1",
|
|
"throttle-debounce": "^3.0.1",
|
|
"ts-easing": "^0.2.0",
|
|
"tslib": "^2.1.0"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
|
|
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "7.20.2",
|
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
"@babel/preset-env": "7.20.2",
|
|
"@babel/preset-react": "7.18.6",
|
|
"@babel/preset-typescript": "7.18.6",
|
|
"@semantic-release/changelog": "5.0.1",
|
|
"@semantic-release/git": "9.0.1",
|
|
"@semantic-release/npm": "7.1.3",
|
|
"@shopify/jest-dom-mocks": "2.11.7",
|
|
"@storybook/addon-actions": "6.4.9",
|
|
"@storybook/addon-knobs": "6.2.9",
|
|
"@storybook/addon-notes": "5.3.21",
|
|
"@storybook/addon-options": "5.3.21",
|
|
"@storybook/react": "6.4.9",
|
|
"@testing-library/react": "12.1.2",
|
|
"@testing-library/react-hooks": "7.0.2",
|
|
"@types/jest": "27.5.2",
|
|
"@types/react": "17.0.0",
|
|
"@typescript-eslint/eslint-plugin": "5.6.0",
|
|
"@typescript-eslint/parser": "5.6.0",
|
|
"babel-core": "6.26.3",
|
|
"babel-eslint": "10.1.0",
|
|
"babel-loader": "8.3.0",
|
|
"babel-plugin-dynamic-import-node": "2.3.3",
|
|
"eslint": "8.28.0",
|
|
"eslint-config-prettier": "8.5.0",
|
|
"eslint-config-react-app": "6.0.0",
|
|
"eslint-plugin-flowtype": "8.0.3",
|
|
"eslint-plugin-import": "2.26.0",
|
|
"eslint-plugin-jsx-a11y": "6.6.1",
|
|
"eslint-plugin-prettier": "4.2.1",
|
|
"eslint-plugin-react": "7.31.11",
|
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
"fork-ts-checker-webpack-plugin": "6.5.2",
|
|
"gh-pages": "3.2.3",
|
|
"husky": "7.0.4",
|
|
"jest": "26.6.3",
|
|
"jest-localstorage-mock": "2.4.22",
|
|
"keyboardjs": "2.7.0",
|
|
"lint-staged": "12.5.0",
|
|
"markdown-loader": "6.0.0",
|
|
"prettier": "2.3.0",
|
|
"raf-stub": "3.0.0",
|
|
"react": "17.0.2",
|
|
"react-dom": "17.0.2",
|
|
"react-frame-component": "5.2.3",
|
|
"react-spring": "9.5.5",
|
|
"react-test-renderer": "17.0.2",
|
|
"rebound": "0.1.0",
|
|
"redux-logger": "3.0.6",
|
|
"redux-thunk": "2.4.2",
|
|
"rimraf": "3.0.2",
|
|
"rxjs": "7.5.7",
|
|
"semantic-release": "17.4.7",
|
|
"ts-jest": "26.5.6",
|
|
"ts-loader": "8.4.0",
|
|
"ts-node": "10.4.0",
|
|
"typescript": "4.1.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}": [
|
|
"eslint --fix",
|
|
"git add"
|
|
]
|
|
},
|
|
"volta": {
|
|
"node": "14.18.2",
|
|
"yarn": "1.22.19"
|
|
},
|
|
"collective": {
|
|
"type": "opencollective",
|
|
"url": "https://opencollective.com/react-use"
|
|
}
|
|
}
|