-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathpackage.json
89 lines (89 loc) · 2.76 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
{
"name": "ether-swr",
"version": "2.0.1",
"description": "Ether-SWR is a React hook that fetches blockchain data, streamlines the chores to keep the internal state of Decentralized App (DApp) and optimize the RPC calls to an Ethereum node.",
"main": "./dist/index.js",
"module": "./esm/index.js",
"engines": {
"node": ">=10"
},
"exports": {
"import": "./esm/index.js",
"require": "./dist/index.js"
},
"react-native": "./esm/index.js",
"types": "./dist/index.d.ts",
"files": [
"dist/**",
"esm/**"
],
"repository": "aboutlo/ether-swr",
"license": "MIT",
"scripts": {
"build": "yarn run build:esm && yarn run build:cjs",
"coverage": "yarn test --coverage --collectCoverageFrom 'src/**/*.ts'",
"prepublishOnly": "yarn run build",
"build:cjs": "ncc build src/index.ts -s -o dist -m -e react -e react-dom -e swr -e web3-react -e Web3Provider",
"build:esm": "tsc --target ESNext --module ES6 --outDir esm",
"publish:local": "yalc publish",
"release:major": "yarn standard-version --release-as major",
"release:minor": "yarn standard-version --release-as minor",
"release:patch": "yarn standard-version --release-as patch",
"start": "jest --watch --verbose",
"types:check": "tsc --noEmit",
"format": "prettier --write \"{src,test,examples}/**/*.{ts,tsx}\"",
"lint": "eslint \"{src,test,examples}/**/*.{ts,tsx}\"",
"lint:fix": "eslint \"{src,test,examples}/**/*.{ts,tsx}\" --fix",
"test": "jest",
"test:watch": "jest --watch"
},
"husky": {
"hooks": {
"pre-commit": "yarn types:check && yarn test && lint-staged"
}
},
"lint-staged": {
"*.{ts,tsx}": [
"yarn run lint:fix",
"yarn run format",
"git add"
]
},
"devDependencies": {
"@0xsequence/multicall": "0.31.0",
"@0xsequence/provider": "0.31.1",
"@testing-library/jest-dom": "5.9.0",
"@testing-library/react": "11.2.3",
"@testing-library/react-hooks": "3.2.1",
"@types/jest": "24.0.20",
"@types/node": "11.12.0",
"@types/react": "16.9.11",
"@typescript-eslint/eslint-plugin": "4.28.3",
"@typescript-eslint/parser": "4.28.3",
"@vercel/ncc": "^0.28.6",
"@web3-react/core": "6.1.1",
"eslint": "^7.22.0",
"eslint-config-prettier": "6.5.0",
"eslint-plugin-react-hooks": "4.0.4",
"ethers": "5.4.7",
"husky": "2.4.1",
"jest": "26.6.0",
"lint-staged": "8.2.1",
"prettier": "1.18.2",
"react": "^17.0.0",
"react-dom": "^17.0.0",
"react-test-renderer": "^17.0.0",
"serve": "12.0.0",
"standard-version": "9.1.0",
"swr": "1.0.0",
"ts-jest": "^26.5.3",
"typescript": "4.3.5"
},
"peerDependencies": {
"@0xsequence/multicall": "*",
"ethers": "*",
"react": "*",
"react-dom": "*",
"swr": "*"
}
}