-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpackage.json
88 lines (88 loc) · 2.62 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
{
"name": "global-hook-store",
"version": "1.0.3",
"description": "A React hook for using global store with hooks",
"main": "lib/index.js",
"homepage": "https://github.com/richarddd/global-hook-store#readme",
"scripts": {
"build": "yarn && rm -rf ./lib/* && ./node_modules/.bin/tsc --strictNullChecks",
"watch": "yarn && ./node_modules/.bin/tsc --strictNullChecks --watch",
"lint": "eslint './src/**/*.{ts,tsx}'",
"lint:fix": "eslint './src/**/*.{ts,tsx}' --fix",
"publish": "npm publish",
"precopy": "yarn build",
"prebuild": "yarn lint && yarn test",
"copy": "cd example && yarn && cd .. && cp -r ./lib example/node_modules/global-hook-store/lib",
"test": "jest"
},
"husky": {
"hooks": {
"pre-push": "yarn build && if [[ $(git diff | head -c1 | wc -c) -ne 0 ]]; then printf \"\\e[31;4;1mERROR: \\\"git diff\\\" was not empty, please commit build dir\\e[0m \" && echo \"\" && exit 1; fi && echo \"Build dir commited\""
}
},
"keywords": [
"global store",
"hooks",
"react-hooks",
"react",
"global-hook-store"
],
"author": "Richard Davison",
"license": "ISC",
"types": "lib/index.d.ts",
"typings": "lib/index.d.ts",
"devDependencies": {
"@babel/core": "^7.12.3",
"@babel/plugin-proposal-export-default-from": "^7.12.1",
"@babel/plugin-transform-runtime": "^7.12.1",
"@babel/preset-env": "^7.12.1",
"@babel/preset-react": "^7.12.5",
"@babel/preset-typescript": "^7.12.1",
"@types/jest": "^26.0.15",
"@types/react": "^16.9.56",
"@typescript-eslint/eslint-plugin": "4.8.0",
"@typescript-eslint/parser": "4.8.0",
"babel-jest": "^26.6.3",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.5",
"eslint-config-prettier": "6.15.0",
"eslint-config-react": "1.1.7",
"eslint-plugin-prettier": "3.1.4",
"eslint-plugin-react": "^7.21.5",
"eslint-plugin-react-hooks": "4.2.0",
"husky": "^4.3.0",
"jest": "26.6.3",
"prettier-eslint": "11.0.0",
"react": "^16.13.1",
"react-dom": "16.13.1",
"typescript": "^4.0.5"
},
"dependencies": {
"@babel/plugin-transform-async-to-generator": "^7.12.1",
"@babel/runtime": "^7.12.5"
},
"peerDependencies": {
"react": "^16.13.1",
"react-dom": "16.13.1"
},
"jest": {
"setupFilesAfterEnv": [
"<rootDir>/tests-setup.js"
],
"verbose": true,
"coverageDirectory": "coverage",
"coverageReporters": [
"lcov",
"text"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js"
],
"testMatch": [
"**/__tests__/**/*.js?(x)",
"**/?(*.)(spec|test).(ts|js)?(x)"
]
}
}