UNPKG

1.77 kBJSONView Raw
1{
2 "name": "swr",
3 "version": "0.3.6",
4 "description": "React Hooks library for remote data fetching",
5 "main": "./dist/index.js",
6 "module": "./esm/index.js",
7 "react-native": "./esm/index.js",
8 "types": "./dist/index.d.ts",
9 "files": [
10 "dist/**",
11 "esm/**"
12 ],
13 "repository": "vercel/swr",
14 "homepage": "https://swr.vercel.app",
15 "license": "MIT",
16 "scripts": {
17 "build": "npm run build:esm && npm run build:cjs",
18 "build:cjs": "ncc build src/index.ts -o dist -m -e react",
19 "build:esm": "tsc --module ES6 --outDir esm",
20 "watch": "tsc --watch",
21 "types:check": "tsc --noEmit",
22 "format": "prettier --write \"{src,test,examples}/**/*.{ts,tsx}\"",
23 "lint": "eslint \"{src,test,examples}/**/*.{ts,tsx}\"",
24 "lint:fix": "eslint \"{src,test,examples}/**/*.{ts,tsx}\" --fix",
25 "test": "jest"
26 },
27 "husky": {
28 "hooks": {
29 "pre-commit": "npm run types:check && lint-staged"
30 }
31 },
32 "lint-staged": {
33 "*.{ts,tsx}": [
34 "npm run lint:fix",
35 "npm run format",
36 "git add"
37 ]
38 },
39 "devDependencies": {
40 "@testing-library/react": "9.3.0",
41 "@types/jest": "24.0.20",
42 "@types/node": "11.12.0",
43 "@types/react": "16.9.11",
44 "@typescript-eslint/eslint-plugin": "2.5.0",
45 "@typescript-eslint/parser": "2.5.0",
46 "@zeit/ncc": "0.20.5",
47 "eslint": "6.6.0",
48 "eslint-config-prettier": "6.5.0",
49 "eslint-plugin-react": "7.20.6",
50 "eslint-plugin-react-hooks": "4.1.2",
51 "husky": "2.4.1",
52 "jest": "24.9.0",
53 "lint-staged": "8.2.1",
54 "prettier": "1.18.2",
55 "react": "16.11.0",
56 "react-dom": "16.11.0",
57 "ts-jest": "24.1.0",
58 "typescript": "3.6.4"
59 },
60 "dependencies": {
61 "dequal": "2.0.2"
62 },
63 "peerDependencies": {
64 "react": "^16.11.0"
65 }
66}