Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
109 lines (109 loc) · 3.23 KB
/
Copy pathpackage.json
File metadata and controls
109 lines (109 loc) · 3.23 KB
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
{
"name": "@goodnight-dev/react-hooks",
"version": "0.3.0",
"description": "Small, strict, tree-shakeable React hooks — the ones you end up writing in every project, packaged the right way.",
"keywords": [
"react",
"react-hooks",
"hooks",
"typescript",
"esm",
"tree-shakable"
],
"license": "MIT",
"author": "Ian Goodnight",
"homepage": "https://github.com/goodnight-dev/react-hooks#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/goodnight-dev/react-hooks.git"
},
"bugs": {
"url": "https://github.com/goodnight-dev/react-hooks/issues"
},
"type": "module",
"sideEffects": false,
"exports": {
".": {
"types": "./dist/index.d.mts",
"import": "./dist/index.mjs"
},
"./useLocalStorage": {
"types": "./dist/use-local-storage.d.mts",
"import": "./dist/use-local-storage.mjs"
},
"./useTheme": {
"types": "./dist/use-theme.d.mts",
"import": "./dist/use-theme.mjs"
},
"./useWindowSize": {
"types": "./dist/use-window-size.d.mts",
"import": "./dist/use-window-size.mjs"
},
"./package.json": "./package.json"
},
"files": [
"dist"
],
"peerDependencies": {
"react": ">=19.0.0"
},
"engines": {
"node": ">=22"
},
"publishConfig": {
"access": "public"
},
"packageManager": "pnpm@11.9.0+sha512.bd682d5d03fe525ef7c9fd6780c6884d1e756ac4c9c9fe00c538782824310dcf90e3ddc4f53835f06dfaebd5085e41855e0bcbb3b60de2ac5bbab89e5036f03b",
"scripts": {
"prepare": "lefthook install",
"build": "tsdown",
"docs:build": "typedoc",
"docs:watch": "typedoc --watch",
"typecheck": "tsc --noEmit -p tsconfig.json",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"lint": "eslint .",
"lint:fix": "eslint . --fix",
"format": "prettier --check .",
"format:write": "prettier --write .",
"publint": "publint",
"attw": "attw --pack --profile esm-only .",
"check:exports": "pnpm run publint && pnpm run attw",
"check": "pnpm run format && pnpm run lint && pnpm run build && pnpm run typecheck && pnpm run test && pnpm run check:exports",
"changeset": "changeset",
"version-packages": "changeset version",
"release": "pnpm run build && node scripts/release-publish.mjs"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.18.4",
"@changesets/cli": "^3.0.0",
"@commitlint/cli": "^21.2.0",
"@commitlint/config-conventional": "^21.2.0",
"@eslint/js": "^10.0.1",
"@testing-library/react": "^16.3.2",
"@types/node": "^26.1.0",
"@types/react": "^19.2.7",
"@types/react-dom": "^19.2.3",
"@vitest/coverage-v8": "^4.1.9",
"esbuild": "^0.28.1",
"eslint": "^10.6.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-functional": "^10.0.0",
"eslint-plugin-perfectionist": "^5.9.1",
"eslint-plugin-react-hooks": "^7.1.0",
"globals": "^17.7.0",
"jsdom": "^30.0.1",
"lefthook": "^2.1.9",
"prettier": "^3.9.4",
"publint": "^0.3.21",
"react": "^19.2.0",
"react-dom": "^19.2.0",
"tsdown": "^0.23.0",
"typedoc": "^0.28.19",
"typescript": "^6.0.3",
"typescript-eslint": "^8.62.1",
"unrun": "^0.3.1",
"vitest": "^4.1.9"
}
}