-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
package.json
146 lines (146 loc) · 4.47 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"name": "swr",
"version": "2.0.0-beta.2",
"description": "React Hooks library for remote data fetching",
"keywords": [
"swr",
"react",
"hooks",
"request",
"cache",
"fetch"
],
"main": "./core/dist/index.js",
"module": "./core/dist/index.esm.js",
"types": "./core/dist/core/index.d.ts",
"exports": {
"./package.json": "./package.json",
".": {
"import": "./core/dist/index.mjs",
"module": "./core/dist/index.esm.js",
"require": "./core/dist/index.js",
"types": "./core/dist/core/index.d.ts"
},
"./infinite": {
"import": "./infinite/dist/index.mjs",
"module": "./infinite/dist/index.esm.js",
"require": "./infinite/dist/index.js",
"types": "./infinite/dist/infinite/index.d.ts"
},
"./immutable": {
"import": "./immutable/dist/index.mjs",
"module": "./immutable/dist/index.esm.js",
"require": "./immutable/dist/index.js",
"types": "./immutable/dist/immutable/index.d.ts"
},
"./mutation": {
"import": "./mutation/dist/index.mjs",
"module": "./mutation/dist/index.esm.js",
"require": "./mutation/dist/index.js",
"types": "./mutation/dist/mutation/index.d.ts"
},
"./_internal": {
"import": "./_internal/dist/index.mjs",
"module": "./_internal/dist/index.esm.js",
"require": "./_internal/dist/index.js",
"types": "./_internal/dist/_internal/index.d.ts"
}
},
"files": [
"core/dist/**",
"infinite/dist/**",
"immutable/dist/**",
"mutation/dist/**",
"_internal/dist/**",
"core/dist/package.json",
"infinite/package.json",
"immutable/package.json",
"mutation/package.json",
"_internal/package.json",
"package.json"
],
"repository": "github:vercel/swr",
"homepage": "https://swr.vercel.app",
"license": "MIT",
"scripts": {
"clean": "rimraf core/dist infinite/dist immutable/dist mutation/dist",
"build": "yarn build:internal && yarn build:core && yarn build:infinite && yarn build:immutable && yarn build:mutation",
"watch": "npm-run-all -p watch:core watch:infinite watch:immutable watch:mutation",
"watch:core": "yarn build:core -w",
"watch:infinite": "yarn build:infinite -w",
"watch:immutable": "yarn build:immutable -w",
"watch:mutation": "yarn build:mutation -w",
"build:core": "bunchee index.ts --cwd core --no-sourcemap",
"build:infinite": "bunchee index.ts --cwd infinite --no-sourcemap",
"build:immutable": "bunchee index.ts --cwd immutable --no-sourcemap",
"build:mutation": "bunchee index.ts --cwd mutation --no-sourcemap",
"build:internal": "bunchee index.ts --cwd _internal --no-sourcemap",
"prepublishOnly": "yarn clean && yarn build",
"publish-beta": "yarn publish --tag beta",
"types:check": "tsc --noEmit --project tsconfig.check.json",
"format": "prettier --write ./**/*.{ts,tsx}",
"lint": "eslint . --ext .ts,.tsx --cache",
"lint:fix": "yarn lint --fix",
"coverage": "jest --coverage",
"test": "jest && tsc --noEmit -p test"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged && yarn types:check"
}
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix --cache",
"prettier --write",
"git add"
]
},
"resolutions": {
"tslib": "2.3.0"
},
"devDependencies": {
"@types/use-sync-external-store": "^0.0.3",
"@swc/core": "1.2.129",
"@swc/jest": "0.2.17",
"@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "^13.1.1",
"@type-challenges/utils": "0.1.1",
"@types/react": "^18.0.6",
"@typescript-eslint/eslint-plugin": "5.8.0",
"@typescript-eslint/parser": "5.8.0",
"bunchee": "1.8.3",
"eslint": "8.3.0",
"eslint-config-prettier": "8.3.0",
"eslint-plugin-jest-dom": "3.9.2",
"eslint-plugin-react": "7.27.1",
"eslint-plugin-react-hooks": "4.3.0",
"eslint-plugin-testing-library": "5.0.0",
"husky": "2.4.1",
"jest": "28.0.2",
"jest-environment-jsdom": "28.0.2",
"lint-staged": "8.2.1",
"next": "^12.1.0",
"npm-run-all": "4.1.5",
"prettier": "2.5.0",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"rimraf": "3.0.2",
"swr": "link:./",
"typescript": "4.4.3"
},
"peerDependencies": {
"react": "^16.11.0 || ^17.0.0 || ^18.0.0"
},
"prettier": {
"tabWidth": 2,
"semi": false,
"useTabs": false,
"singleQuote": true,
"arrowParens": "avoid",
"trailingComma": "none"
},
"dependencies": {
"use-sync-external-store": "^1.1.0"
}
}