Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
103 lines (103 loc) · 2.81 KB
/
Copy pathpackage.json
File metadata and controls
103 lines (103 loc) · 2.81 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
{
"name": "react-use-control",
"version": "0.0.0-development",
"description": "Make React component state controllable — seamless controlled/uncontrolled support via a lightweight control object.",
"type": "module",
"main": "dist/development.js",
"module": "dist/development.js",
"unpkg": "dist/umd/development.js",
"jsdelivr": "dist/umd/development.js",
"exports": {
".": {
"types": "./index.d.ts",
"development": "./dist/development.js",
"production": "./dist/production.js",
"default": "./dist/development.js"
}
},
"types": "index.d.ts",
"files": [
"dist",
"index.d.ts"
],
"sideEffects": false,
"scripts": {
"storybook": "storybook dev -p 6006",
"storybook:build": "storybook build",
"commit": "lint-staged && git-cz -n",
"build": "rollup -c",
"prepare": "node -e \"process.env.CI||require('child_process').execSync('npx husky',{stdio:'inherit'})\"",
"lint": "eslint --fix src test",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"bench": "vitest bench",
"test:coverage": "vitest run --coverage",
"start": "vitest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/wmzy/react-use-control.git"
},
"keywords": [
"react",
"hooks",
"controlled",
"uncontrolled",
"state",
"component-library"
],
"author": "wmzy",
"license": "MIT",
"bugs": {
"url": "https://github.com/wmzy/react-use-control/issues"
},
"homepage": "https://github.com/wmzy/react-use-control",
"engines": {
"node": ">=16.0.0"
},
"devDependencies": {
"@babel/core": "^8.0.1",
"@babel/preset-env": "^8.0.2",
"@eslint/js": "^10.0.1",
"@radix-ui/react-use-controllable-state": "^1.2.6",
"@rollup/plugin-babel": "^7.1.0",
"@rollup/plugin-replace": "^6.0.3",
"@rollup/plugin-terser": "^1.0.0",
"@storybook/addon-docs": "^10.5.10",
"@storybook/react": "^10.5.10",
"@storybook/react-vite": "^10.5.10",
"@testing-library/react": "^16.3.2",
"@types/react": "^19.2.18",
"@vitest/coverage-v8": "^4.1.11",
"commitizen": "^4.3.2",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^10.9.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.6",
"globals": "^17.11.0",
"husky": "^9.1.7",
"jsdom": "^30.0.1",
"lint-staged": "^17.3.0",
"prettier": "^3.9.6",
"react": "^19.2.8",
"react-dom": "^19.2.8",
"rollup": "^4.62.5",
"semantic-release": "^25.0.9",
"storybook": "^10.5.10",
"vite": "^8.2.2",
"vitest": "^4.1.11"
},
"lint-staged": {
"*.js": "eslint --fix"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
}
}