UNPKG

1.74 kBJSONView Raw
1{
2 "name": "swr",
3 "version": "0.1.15",
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": "zeit/swr",
14 "homepage": "https://swr.now.sh",
15 "license": "MIT",
16 "scripts": {
17 "dev": "now dev",
18 "build": "npm run build:esm && npm run build:cjs",
19 "build:cjs": "ncc build src/index.ts -o dist -m -e react",
20 "build:esm": "tsc --target ESNext --module ES6 --outDir esm",
21 "watch": "tsc --watch",
22 "types:check": "tsc --noEmit",
23 "format": "prettier --write \"{src,test,examples}/**/*.{ts,tsx}\"",
24 "lint": "eslint \"{src,test,examples}/**/*.{ts,tsx}\"",
25 "lint:fix": "eslint \"{src,test,examples}/**/*.{ts,tsx}\" --fix",
26 "test": "jest"
27 },
28 "husky": {
29 "hooks": {
30 "pre-commit": "npm run types:check && lint-staged"
31 }
32 },
33 "lint-staged": {
34 "*.{ts,tsx}": [
35 "npm run lint:fix",
36 "npm run format",
37 "git add"
38 ]
39 },
40 "devDependencies": {
41 "@testing-library/react": "9.3.0",
42 "@types/jest": "24.0.20",
43 "@types/node": "11.12.0",
44 "@types/react": "16.9.11",
45 "@typescript-eslint/eslint-plugin": "2.5.0",
46 "@typescript-eslint/parser": "2.5.0",
47 "@zeit/ncc": "0.20.5",
48 "eslint": "6.6.0",
49 "eslint-config-prettier": "6.5.0",
50 "husky": "2.4.1",
51 "jest": "24.9.0",
52 "lint-staged": "8.2.1",
53 "prettier": "1.18.2",
54 "react": "16.11.0",
55 "react-dom": "16.11.0",
56 "ts-jest": "24.1.0",
57 "typescript": "3.6.4"
58 },
59 "dependencies": {
60 "fast-deep-equal": "2.0.1"
61 },
62 "peerDependencies": {
63 "react": "^16.11.0"
64 }
65}