-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
76 lines (76 loc) · 1.86 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
{
"name": "@react-cmpt/use-throttle",
"version": "0.3.3",
"description": "The throttled value / function hook for react",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"module": "esm/index.js",
"sideEffects": false,
"scripts": {
"build": "rm -rf ./lib/* ./esm/* && yarn build:cjs && yarn build:es",
"build:cjs": "tsc",
"build:es": "tsc -m ESNext --outDir ./esm",
"test": "jest -c jest.json",
"lint": "eslint . --ext '.js,.jsx,.ts,.tsx'",
"prettier": "prettier --write '**/*' --config ./.prettierrc",
"prepare": "yarn build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/react-cmpt/use-throttle.git"
},
"keywords": [
"react",
"hooks",
"use",
"throttle",
"useThrottle",
"useThrottleFn",
"use-throttle",
"callback"
],
"author": "wangcch <wangcch.cc@gmail.com>",
"license": "MIT",
"files": [
"esm",
"lib"
],
"dependencies": {},
"peerDependencies": {
"react": ">16.8.0"
},
"devDependencies": {
"@testing-library/react-hooks": "^7.0.2",
"@types/jest": "^27.4.0",
"@types/react": "^17.0.38",
"@types/react-dom": "^17.0.11",
"@typescript-eslint/eslint-plugin": "^5.9.1",
"@typescript-eslint/parser": "^5.9.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.3.0",
"husky": "^4.3.5",
"jest": "^27.4.7",
"lint-staged": "^10.5.3",
"prettier": "^2.5.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-test-renderer": "^17.0.2",
"ts-jest": "^27.1.2",
"typescript": "^4.5.4"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.{ts,tsx,js,jsx}": [
"prettier --write",
"eslint",
"git add"
]
}
}