-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
82 lines (82 loc) · 2.52 KB
/
Copy pathpackage.json
File metadata and controls
82 lines (82 loc) · 2.52 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
{
"name": "@revotale/react-hooks",
"version": "0.3.4",
"description": "Small React hooks with a stable, typed API.",
"license": "MIT",
"author": "RevoTale",
"repository": {
"type": "git",
"url": "git+https://github.com/RevoTale/react-hooks.git"
},
"homepage": "https://github.com/RevoTale/react-hooks#readme",
"bugs": {
"url": "https://github.com/RevoTale/react-hooks/issues"
},
"keywords": [
"react",
"react-hooks",
"typescript"
],
"type": "module",
"sideEffects": false,
"packageManager": "bun@1.3.13",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.mts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./package.json": "./package.json"
},
"files": [
"dist",
"LICENSE",
"README.md"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsdown && bun run check:dist",
"check:attw": "bun pm pack --filename /tmp/revotale-react-hooks-attw.tgz --ignore-scripts --quiet && attw /tmp/revotale-react-hooks-attw.tgz --profile strict --no-summary --no-emoji",
"check:dist": "bun scripts/check-dist.ts",
"check:exports": "node --input-type=module -e \"import { useBool } from '@revotale/react-hooks'; if (typeof useBool !== 'function') process.exit(1)\" && node -e \"const { useBool } = require('@revotale/react-hooks'); if (typeof useBool !== 'function') process.exit(1)\"",
"check:package": "bun run check:pack && bun run check:publint && bun run check:attw && bun run check:exports",
"check:pack": "bun pm pack --dry-run --ignore-scripts",
"check:publint": "publint --strict",
"clean": "rm -rf dist",
"fix": "biome check --write .",
"lint": "biome check .",
"prepack": "bun run build",
"prepublishOnly": "bun run validate && bun run test && bun run build && bun run check:package",
"test": "bun test --preload ./test/setup.ts",
"typecheck": "tsc --noEmit",
"validate": "bun run lint && bun run typecheck"
},
"peerDependencies": {
"react": ">=18.0.0"
},
"devDependencies": {
"@arethetypeswrong/cli": "0.18.2",
"@biomejs/biome": "^2.4.13",
"@happy-dom/global-registrator": "^20.9.0",
"@testing-library/dom": "^10.4.1",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"publint": "^0.3.18",
"react": "^19.2.5",
"react-dom": "^19.2.5",
"tsdown": "^0.21.10",
"typescript": "^6.0.0"
}
}