-
Notifications
You must be signed in to change notification settings - Fork 12
/
package.json
113 lines (113 loc) · 2.51 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
{
"name": "@nodecg/react-hooks",
"version": "1.0.3",
"description": "Custom React Hooks for NodeCG",
"keywords": [
"custom-hooks",
"nodecg",
"react",
"react-hooks",
"typescript"
],
"homepage": "https://github.com/nodecg/react-hooks#readme",
"bugs": {
"url": "https://github.com/nodecg/react-hooks/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/nodecg/react-hooks.git"
},
"license": "MIT",
"author": "Keiichiro Amemiya <[email protected]>",
"contributors": [
"Carlos Fernandez",
"Ted Kulp"
],
"exports": {
".": {
"import": "./esm/index.js",
"require": "./cjs/index.js",
"default": "./esm/index.js"
},
"./use-replicant": {
"import": "./esm/use-replicant.js",
"require": "./cjs/use-replicant.js",
"default": "./esm/use-replicant.js"
},
"./use-listen-for": {
"import": "./esm/use-listen-for.js",
"require": "./cjs/use-listen-for.js",
"default": "./esm/use-listen-for.js"
}
},
"main": "cjs/index.js",
"module": "esm/index.js",
"files": [
"cjs",
"esm"
],
"scripts": {
"build": "del-cli cjs esm && tsc -b src/tsconfig.json src/tsconfig.cjs.json",
"fmt": "prettier . --write",
"prepublishOnly": "npm run build",
"test": "run-s test:*",
"test:fmt": "prettier . --check",
"test:jest": "jest",
"test:lint": "eslint \"**/*.{ts,tsx}\""
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,ts,tsx,md,yml,yaml,json}": [
"prettier --write",
"git add"
],
"*.{ts,tsx}": [
"eslint --fix",
"git add"
],
"package.json": [
"sort-package-json",
"git add"
]
},
"dependencies": {
"@nodecg/types": "^2.1.8",
"klona": "^2.0.6",
"tslib": "^2.0.0",
"type-fest": "^4.13.1"
},
"devDependencies": {
"@hoishin/prettierrc": "2.1.1",
"@testing-library/react": "^13.4.0",
"@types/jest": "^29.5.2",
"@types/lodash.clone": "4.5.6",
"@types/node": "12.12.29",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@typescript-eslint/eslint-plugin": "^5.59.9",
"@typescript-eslint/parser": "^5.59.9",
"del-cli": "3.0.0",
"eslint": "^8.42.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "4.3.0",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"lint-staged": "10.5.1",
"npm-run-all": "4.1.5",
"prettier": "^3.1.1",
"react": "^18.0.0",
"react-dom": "^18.0.0",
"sort-package-json": "1.46.1",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.1.3"
},
"publishConfig": {
"access": "public"
}
}