-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
87 lines (87 loc) · 2.34 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
77
78
79
80
81
82
83
84
85
86
87
{
"name": "ohook",
"version": "1.0.1",
"description": "oh hook !",
"scripts": {
"prepare": "husky install",
"lint": "eslint {src,tests,stories}/**/*.{ts,tsx}",
"lint:fix": "yarn lint --fix",
"lint:types": "tsc --noEmit",
"build:cjs": "tsc -m commonjs --target es5 --outDir cjs",
"build:es": "tsc -m es6 --target es5 --outDir esm",
"build:esnext": "tsc -m ESNext --target ESNext --outDir esnext",
"build": "yarn cleanup && yarn build:cjs && yarn build:es && yarn build:esnext",
"cleanup": "rimraf ./cjs ./esm ./esnext ./coverage",
"test": "jest",
"test:coverage": "yarn test --coverage",
"test:report": "yarn test:coverage && cat ./coverage/lcov.info | coveralls",
"npm": "yarn build && npm publish"
},
"sideEffects": false,
"main": "cjs/index.js",
"esnext": "esnext/index.js",
"types": "cjs/index.d.ts",
"module": "esm/index.js",
"config": {
"commitizen": {
"path": "@commitlint/cz-commitlint"
}
},
"lint-staged": {
"src/**/**/*.{ts,tsx}": [
"eslint --fix"
]
},
"files": [
"cjs",
"esm",
"esnext"
],
"keywords": [
"react",
"hook",
"react-hook"
],
"author": "",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/shiyiya/ohook.git"
},
"bugs": {
"url": "https://github.com/shiyiya/ohook/issues"
},
"peerDependencies": {
"react": "^16.8 || ^17"
},
"devDependencies": {
"@commitlint/cli": "^13.1.0",
"@commitlint/config-conventional": "^13.1.0",
"@testing-library/react": "^12.0.0",
"@testing-library/react-hooks": "^7.0.1",
"@testing-library/user-event": "^13.2.1",
"@types/jest": "^26.0.24",
"@types/lodash.debounce": "^4.0.6",
"@types/lodash.throttle": "^4.1.6",
"@types/react": "^17.0.15",
"@typescript-eslint/eslint-plugin": "^4.29.0",
"@typescript-eslint/parser": "^4.29.0",
"coveralls": "^3.1.1",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"husky": "^7.0.1",
"jest": "^27.0.6",
"lint-staged": "^11.1.1",
"prettier": "^2.3.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-test-renderer": "^17.0.2",
"ts-jest": "^27.0.4",
"typescript": "^4.3.5"
},
"dependencies": {
"lodash.debounce": "^4.0.8",
"lodash.throttle": "^4.1.1"
}
}