rc-hooks
Version:
React Hooks Library.
104 lines (103 loc) • 2.89 kB
JSON
{
"name": "rc-hooks",
"version": "3.0.24",
"description": "React Hooks Library.",
"main": "lib/index.js",
"module": "es/index.js",
"sideEffects": false,
"types": "lib/index.d.ts",
"scripts": {
"start": "npm run dev",
"dev": "dumi dev",
"build": "npm run build:es && npm run build:cjs && npm run build:umd",
"build:es": "rm -rf es && tsc -p tsconfig.build.json -m ES2015 -t ES5 --outDir es -d",
"build:cjs": "rm -rf lib && tsc -p tsconfig.build.json -m commonjs -t ES5 --outDir lib -d",
"build:umd": "rm -rf dist && rollup -c",
"doc": "dumi build",
"doc-version": "cross-env BUILD_DOC_VERSION=true dumi build",
"prettier": "prettier --write **/*",
"lint": "eslint .",
"lint:fix": "npm run lint -- --fix",
"commit": "cz",
"test": "jest --verbose",
"prepare": "husky && dumi setup",
"prepublishOnly": "npm test && npm run build",
"tsc": "tsc --noEmit"
},
"lint-staged": {
"**/*.{ts,tsx,js,jsx}": "eslint",
"**/*.{js,jsx,ts,tsx,json,css,scss,sass,less,md}": "prettier -w"
},
"config": {
"commitizen": {
"path": "@commitlint/cz-commitlint"
}
},
"files": [
"dist",
"es",
"lib"
],
"repository": {
"type": "git",
"url": "git+https://github.com/doly-dev/rc-hooks.git"
},
"keywords": [
"react",
"hook"
],
"author": "caijf",
"license": "MIT",
"bugs": {
"url": "https://github.com/doly-dev/hooks/issues"
},
"homepage": "https://github.com/doly-dev/hooks#readme",
"dependencies": {
"tslib": "^2.8.1",
"ut2": "^1.20.1",
"util-helpers": "^5.7.4"
},
"devDependencies": {
"@commitlint/cli": "^19.8.1",
"@commitlint/config-conventional": "^19.8.1",
"@commitlint/cz-commitlint": "^19.8.1",
"@eslint/js": "^9.31.0",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.4",
"@testing-library/react": "^16.3.0",
"@types/jest": "^30.0.0",
"@types/mockjs": "^1.0.10",
"@types/node": "^20.19.9",
"@types/react": "^18.3.23",
"antd": "^5.26.6",
"commitizen": "^4.3.1",
"cross-env": "^7.0.3",
"dayjs": "^1.11.13",
"dumi": "^2.4.21",
"eslint": "^9.31.0",
"eslint-plugin-react-hooks": "6.0.0-rc.1",
"eslint-plugin-react-refresh": "^0.4.20",
"globals": "^16.3.0",
"husky": "^9.1.7",
"jest": "^30.0.5",
"jest-environment-jsdom": "^30.0.5",
"lint-staged": "^15.5.2",
"mockjs": "^1.1.0",
"prettier": "^3.6.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rollup": "^4.45.1",
"ts-jest": "^29.4.0",
"ts-node": "^10.9.2",
"typescript": "^5.8.3",
"typescript-eslint": "^8.38.0"
},
"peerDependencies": {
"react": ">= 16.8.6"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}