forked from vercel/swr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
66 lines (66 loc) · 1.74 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
{
"name": "swr",
"version": "0.3.9",
"description": "React Hooks library for remote data fetching",
"main": "./dist/index.js",
"module": "./esm/index.js",
"react-native": "./esm/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist/**",
"esm/**"
],
"repository": "vercel/swr",
"homepage": "https://swr.vercel.app",
"license": "MIT",
"scripts": {
"build": "npm run build:esm && npm run build:cjs",
"build:cjs": "ncc build src/index.ts -o dist -m -e react",
"build:esm": "tsc --module ES6 --outDir esm",
"watch": "tsc --watch",
"types:check": "tsc --noEmit",
"format": "prettier --write \"{src,test,examples}/**/*.{ts,tsx}\"",
"lint": "eslint \"{src,test,examples}/**/*.{ts,tsx}\"",
"lint:fix": "eslint \"{src,test,examples}/**/*.{ts,tsx}\" --fix",
"test": "jest"
},
"husky": {
"hooks": {
"pre-commit": "npm run types:check && lint-staged"
}
},
"lint-staged": {
"*.{ts,tsx}": [
"npm run lint:fix",
"npm run format",
"git add"
]
},
"devDependencies": {
"@testing-library/react": "9.3.0",
"@types/jest": "24.0.20",
"@types/node": "11.12.0",
"@types/react": "16.9.11",
"@typescript-eslint/eslint-plugin": "2.5.0",
"@typescript-eslint/parser": "2.5.0",
"@zeit/ncc": "0.20.5",
"eslint": "6.6.0",
"eslint-config-prettier": "6.5.0",
"eslint-plugin-react": "7.20.6",
"eslint-plugin-react-hooks": "4.1.2",
"husky": "2.4.1",
"jest": "24.9.0",
"lint-staged": "8.2.1",
"prettier": "1.18.2",
"react": "16.11.0",
"react-dom": "16.11.0",
"ts-jest": "24.1.0",
"typescript": "3.6.4"
},
"dependencies": {
"dequal": "2.0.2"
},
"peerDependencies": {
"react": "^16.11.0 || ^17.0.0"
}
}