-
Notifications
You must be signed in to change notification settings - Fork 10
/
package.json
61 lines (61 loc) · 1.72 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
{
"name": "react-use-event-hook",
"version": "0.9.5",
"description": "Same as React's `useCallback`, but returns a stable reference.",
"main": "dist/cjs/useEvent.js",
"module": "dist/esm/useEvent.js",
"types": "dist/esm/useEvent.d.ts",
"files": [
"dist",
"src"
],
"scripts": {
"check": "npm run lint && npm run typecheck && npm run test:react-18 && npm run test:react-17",
"test": "jest",
"test:react-18": "jest",
"test:react-17": "cd test/react-17; test -d node_modules || npm ci; npm run test",
"test:watch": "jest --watch",
"lint": "prettier src --check",
"lint:fix": "prettier src --write",
"build": "npm run clean && npm run build:esm && npm run build:cjs",
"build:esm": "tsc",
"build:cjs": "tsc --outDir dist/cjs --module commonjs",
"clean": "rimraf dist",
"build:watch": "tsc --watch",
"typecheck": "tsc --noEmit",
"prepublishOnly": "npm run build",
"preversion": "npm run test && npm run typecheck"
},
"repository": {
"type": "git",
"url": "git+https://github.com/scottrippey/react-use-event-hook.git"
},
"keywords": [
"react",
"hooks",
"useevent",
"memo",
"performance",
"optimization"
],
"author": "Scott Rippey",
"license": "MIT",
"bugs": {
"url": "https://github.com/scottrippey/react-use-event-hook/issues"
},
"homepage": "https://github.com/scottrippey/react-use-event-hook#readme",
"dependencies": {},
"peerDependencies": {
"react": ">=16.8.0"
},
"devDependencies": {
"@testing-library/react": "^13.4.0",
"@types/jest": "^26.0.20",
"jest": "^26.6.3",
"prettier": "^2.2.1",
"react": "^18.2.0",
"rimraf": "^3.0.2",
"ts-jest": "^26.4.4",
"typescript": "^4.1.3"
}
}