-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
Copy pathpackage.json
104 lines (104 loc) · 3.69 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"name": "swr",
"version": "1.0.0-beta.9",
"description": "React Hooks library for remote data fetching",
"main": "./dist/index.js",
"module": "./dist/index.esm.js",
"exports": {
"./package.json": "./package.json",
".": {
"import": "./dist/index.esm.js",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./infinite": {
"import": "./infinite/dist/index.esm.js",
"require": "./infinite/dist/index.js",
"types": "./infinite/dist/infinite/index.d.ts"
},
"./immutable": {
"import": "./immutable/dist/index.esm.js",
"require": "./immutable/dist/index.js",
"types": "./immutable/dist/immutable/index.d.ts"
}
},
"react-native": "./dist/index.esm.js",
"types": "./dist/index.d.ts",
"files": [
"dist/**",
"infinite/dist/**",
"immutable/dist/**",
"infinite/package.json",
"immutable/package.json"
],
"repository": "vercel/swr",
"homepage": "https://swr.vercel.app",
"license": "MIT",
"scripts": {
"clean": "rm -rf dist infinite/dist immutable/dist",
"build": "yarn build:core && yarn build:infinite && yarn build:immutable",
"watch": "concurrently \"yarn watch:core\" \"yarn watch:infinite\" \"yarn watch:immutable\"",
"watch:core": "bunchee src/index.ts --watch",
"watch:infinite": "bunchee index.ts --cwd infinite --watch",
"watch:immutable": "bunchee index.ts --cwd immutable --watch",
"build:core": "bunchee src/index.ts -m --no-sourcemap",
"build:infinite": "bunchee index.ts --cwd infinite -m --no-sourcemap",
"build:immutable": "bunchee index.ts --cwd immutable -m --no-sourcemap",
"prepublishOnly": "yarn clean && yarn build",
"types:check": "tsc --noEmit",
"format": "prettier --write \"{src,infinite,immutable,test,examples}/**/*.{ts,tsx}\"",
"lint": "eslint \"{src,infinite,immutable,test,examples}/**/*.{ts,tsx}\"",
"lint:fix": "eslint \"{src,infinite,immutable,test,examples}/**/*.{ts,tsx}\" --fix",
"test": "jest",
"register": "yarn link && cd node_modules/react && yarn link",
"prepare:vite": "git clone https://github.com/promer94/vite-swr playground/vite-swr && cd playground/vite-swr && yarn && yarn link react && yarn link swr",
"prepare:next": "git clone https://github.com/promer94/next-swr playground/next-swr && cd playground/next-swr && yarn && yarn link react && yarn link swr",
"dev:vite": "concurrently \"yarn watch\" \"cd playground/vite-swr && yarn dev\"",
"dev:next": "concurrently \"yarn watch\" \"cd playground/next-swr && yarn dev\""
},
"husky": {
"hooks": {
"pre-commit": "yarn types:check && lint-staged"
}
},
"lint-staged": {
"*.{ts,tsx}": [
"yarn lint:fix",
"yarn format",
"git add"
]
},
"devDependencies": {
"@testing-library/jest-dom": "5.14.1",
"@testing-library/react": "12.0.0",
"@types/jest": "25.2.3",
"@types/node": "11.12.0",
"@types/react": "16.9.11",
"@typescript-eslint/eslint-plugin": "4.24.0",
"@typescript-eslint/parser": "4.24.0",
"bunchee": "1.6.2",
"concurrently": "6.0.0",
"eslint": "6.6.0",
"eslint-config-prettier": "6.5.0",
"eslint-plugin-jest-dom": "3.6.5",
"eslint-plugin-react": "7.20.6",
"eslint-plugin-react-hooks": "4.1.2",
"eslint-plugin-testing-library": "3.10.1",
"husky": "2.4.1",
"jest": "27.0.6",
"lint-staged": "8.2.1",
"prettier": "1.18.2",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-dom-experimental": "npm:react-dom@alpha",
"react-experimental": "npm:react@alpha",
"ts-jest": "27.0.3",
"typescript": "3.9.10"
},
"peerDependencies": {
"react": "^16.11.0 || ^17.0.0"
},
"dependencies": {
"dequal": "2.0.2"
}
}