-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
96 lines (96 loc) · 2.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
{
"name": "baitshop",
"version": "0.11.1",
"description": "Write your React (or Preact) hooks as JavaScript classes.",
"license": "BSD-3-Clause",
"main": "react/index.js",
"module": "react/index.esm.js",
"browser": "react/index.umd.js",
"types": "react/index.d.ts",
"repository": {
"type": "git",
"url": "git://github.com/aarongoin/baitshop.git"
},
"bugs": {
"url": "https://github.com/aarongoin/baitshop/issues"
},
"homepage": "https://github.com/aarongoin/baitshop",
"keywords": [
"preact",
"react",
"hooks",
"typescript"
],
"scripts": {
"build": "rollup -c && npm run build-types:react && npm run build-types:preact",
"build-types:react": "cat ./src/react/types.ts > ./react/index.d.ts && tail -n +3 ./src/shared/types.ts >> ./react/index.d.ts",
"build-types:preact": "cat ./src/preact/types.ts > ./preact/index.d.ts && tail -n +3 ./src/shared/types.ts >> ./preact/index.d.ts",
"dev": "rollup -c -w",
"lint": "eslint --fix ./src/index.tsx",
"test": "jest",
"precommit": "lint-staged"
},
"lint-staged": {
"*.{js,jsx,css,md,scss}": [
"prettier --write",
"git add"
],
"*.{ts,tsx}": [
"eslint --fix",
"git add"
]
},
"files": [
"react",
"preact"
],
"devDependencies": {
"@rollup/plugin-typescript": "^4.1.1",
"@testing-library/preact": "^2.0.0",
"@testing-library/react": "^10.0.4",
"@types/jest": "^23.3.10",
"@typescript-eslint/eslint-plugin": "^2.33.0",
"@typescript-eslint/parser": "^2.33.0",
"eslint": "^7.0.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-baitshop-hooks": "^1.0.2",
"eslint-plugin-react": "^7.20.0",
"eslint-plugin-react-hooks": "^4.0.2",
"jest": "^23.6.0",
"lint-staged": "^8.1.0",
"preact": "^10.4.4",
"prettier": "^1.19.1",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"rollup": "^2.10.0",
"rollup-plugin-cleanup": "^3.1.1",
"ts-jest": "^23.10.5",
"ts-node": "^7.0.1",
"tslib": "^1.9.3",
"typescript": "^3.9.2"
},
"peerDependencies": {
"preact": "^10.4.4",
"react": "^16.13.1",
"react-dom": "^16.13.1"
},
"jest": {
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"verbose": true,
"moduleFileExtensions": [
"js",
"jsx",
"ts",
"tsx"
],
"moduleDirectories": [
"node_modules"
],
"testMatch": [
"**/__tests__/**/*.[jt]s?(x)",
"**/?(*.)(spec|test).[jt]s?(x)"
]
}
}