forked from vercel/swr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
55 lines (55 loc) · 1.49 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
{
"name": "preact-swr",
"version": "0.3.14",
"description": "Preact Hooks library for remote data fetching",
"main": "./dist/index.js",
"module": "./esm/index.js",
"react-native": "./esm/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist/**",
"esm/**"
],
"repository": "SeonHyungJo/preact-swr",
"homepage": "https://swr.vercel.app",
"license": "MIT",
"scripts": {
"build": "npm run build:esm && npm run build:cjs",
"build:cjs": "ncc build src/index.ts -o dist -m -e react",
"build:esm": "tsc --module ES6 --outDir esm",
"watch": "tsc --watch",
"types:check": "tsc --noEmit",
"format": "prettier --write \"{src,examples}/**/*.{ts,tsx}\"",
"lint": "eslint \"{src,examples}/**/*.{ts,tsx}\"",
"lint:fix": "eslint \"{src,examples}/**/*.{ts,tsx}\" --fix",
"test": "jest"
},
"lint-staged": {
"*.{ts,tsx}": [
"npm run lint:fix",
"npm run format",
"git add"
]
},
"devDependencies": {
"@types/jest": "24.0.20",
"@types/node": "11.12.0",
"@typescript-eslint/eslint-plugin": "2.5.0",
"@typescript-eslint/parser": "2.5.0",
"@zeit/ncc": "0.20.5",
"eslint": "6.6.0",
"eslint-config-preact": "1.1.3",
"eslint-config-prettier": "6.5.0",
"husky": "2.4.1",
"jest": "24.9.0",
"lint-staged": "8.2.1",
"prettier": "1.18.2",
"ts-jest": "24.1.0",
"typescript": "3.6.4"
},
"dependencies": {
"@testing-library/preact": "2.0.1",
"dequal": "2.0.2",
"preact": "^10.4.8"
}
}