-
Notifications
You must be signed in to change notification settings - Fork 129
/
package.json
89 lines (89 loc) · 2.51 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
88
89
{
"name": "axios-hooks",
"version": "5.0.2",
"description": "axios-hooks",
"keywords": [
"axios",
"react",
"hooks"
],
"license": "MIT",
"author": "Simone Busoli <[email protected]>",
"homepage": "https://github.com/simoneb/axios-hooks",
"repository": "simoneb/axios-hooks",
"bugs": "https://github.com/simoneb/axios-hooks/issues",
"main": "cjs/index.js",
"module": "es/index.js",
"types": "src/index.d.ts",
"files": [
"cjs/",
"es/",
"src/"
],
"scripts": {
"build:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir cjs",
"build:es": "babel src --out-dir es",
"build": "run-p build:*",
"clean": "rimraf cjs es",
"format": "prettier --write \"{src,test}/**/*.{js?(x),md,ts?(x)}\"",
"lint": "eslint . --ext .js,.jsx",
"prepare": "npm run clean && npm run build && husky install",
"release": "standard-version",
"pretest": "shx cp ./test/index.test.jsx ./test/index.test.tsx && shx cp ./test/index.test.ssr.jsx ./test/index.test.ssr.tsx",
"test": "tsd && jest --no-cache"
},
"dependencies": {
"@babel/runtime": "7.26.0",
"dequal": "2.0.3",
"lru-cache": "^11.0.0"
},
"peerDependencies": {
"axios": ">=1.0.0",
"react": "^16.8.0-0 || ^17.0.0 || ^18.0.0 || ^19.0.0"
},
"devDependencies": {
"@babel/cli": "7.26.4",
"@babel/core": "7.26.0",
"@babel/plugin-transform-runtime": "7.25.9",
"@babel/preset-env": "7.26.0",
"@babel/preset-react": "7.26.3",
"@commitlint/cli": "19.6.1",
"@commitlint/config-conventional": "19.6.0",
"@testing-library/react": "12.1.5",
"@testing-library/react-hooks": "7.0.2",
"@types/jest": "29.5.14",
"@types/node": "22.10.2",
"@types/react": "18.2.20",
"@types/react-dom": "18.2.7",
"axios": "1.7.9",
"cross-env": "7.0.3",
"eslint": "8.57.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.37.3",
"eslint-plugin-react-hooks": "5.1.0",
"husky": "^9.0.3",
"jest": "29.7.0",
"jest-environment-jsdom": "^29.6.4",
"lint-staged": "15.2.11",
"npm-run-all": "4.1.5",
"prettier": "3.4.2",
"react": "17.0.2",
"react-dom": "17.0.2",
"rimraf": "6.0.1",
"shx": "0.3.4",
"standard-version": "9.5.0",
"ts-jest": "29.2.5",
"tsd": "^0.31.0",
"typescript": "5.7.2"
},
"lint-staged": {
"{src,test}/**/*.{js?(x),md}": [
"eslint --fix"
]
},
"tsd": {
"directory": "test-d"
}
}