1 | {
|
2 | "name": "swr",
|
3 | "version": "0.1.7",
|
4 | "description": "React Hooks library for remote data fetching",
|
5 | "main": "./dist/index.js",
|
6 | "types": "./dist/index.d.ts",
|
7 | "files": [
|
8 | "dist/**"
|
9 | ],
|
10 | "repository": "zeit/swr",
|
11 | "homepage": "https://swr.now.sh",
|
12 | "license": "MIT",
|
13 | "scripts": {
|
14 | "dev": "now dev",
|
15 | "build": "tsc",
|
16 | "watch": "tsc --watch",
|
17 | "types:check": "tsc --noEmit",
|
18 | "format": "prettier --write '{src,test,examples}/**/*.{ts,tsx}'",
|
19 | "lint": "eslint '{src,test,examples}/**/*.{ts,tsx}'",
|
20 | "lint:fix": "eslint '{src,test,examples}/**/*.{ts,tsx}' --fix",
|
21 | "test": "jest"
|
22 | },
|
23 | "husky": {
|
24 | "hooks": {
|
25 | "pre-commit": "npm run types:check && lint-staged"
|
26 | }
|
27 | },
|
28 | "lint-staged": {
|
29 | "*.{ts,tsx}": [
|
30 | "npm run lint:fix",
|
31 | "npm run format",
|
32 | "git add"
|
33 | ]
|
34 | },
|
35 | "devDependencies": {
|
36 | "@testing-library/react": "9.3.0",
|
37 | "@types/jest": "24.0.20",
|
38 | "@types/lodash.throttle": "4.1.6",
|
39 | "@types/node": "11.12.0",
|
40 | "@types/react": "16.9.11",
|
41 | "@types/react-dom": "16.9.3",
|
42 | "@typescript-eslint/eslint-plugin": "2.5.0",
|
43 | "@typescript-eslint/parser": "2.5.0",
|
44 | "eslint": "6.6.0",
|
45 | "eslint-config-prettier": "6.5.0",
|
46 | "husky": "2.4.1",
|
47 | "jest": "24.9.0",
|
48 | "lint-staged": "8.2.1",
|
49 | "prettier": "1.18.2",
|
50 | "react": "16.11.0",
|
51 | "react-dom": "16.11.0",
|
52 | "ts-jest": "24.1.0",
|
53 | "typescript": "3.6.4"
|
54 | },
|
55 | "dependencies": {
|
56 | "fast-deep-equal": "2.0.1",
|
57 | "lodash.throttle": "4.1.1",
|
58 | "ms": "2.1.2"
|
59 | },
|
60 | "peerDependencies": {
|
61 | "react": "16.11.0"
|
62 | },
|
63 | "peerDependenciesMeta": {
|
64 | "react-dom": {
|
65 | "optional": true
|
66 | },
|
67 | "react-native": {
|
68 | "optional": true
|
69 | }
|
70 | }
|
71 | }
|