Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
68 lines (68 loc) · 1.89 KB
/
Copy pathpackage.json
File metadata and controls
68 lines (68 loc) · 1.89 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
{
"name": "nested-contexts",
"version": "0.1.0",
"description": "A minimal, lightweight React utility for precise subscriptions via nested Contexts, avoiding re-renders of components subscribed to unrelated fields. 极简轻量 React 工具库:通过嵌套 Context 实现精确订阅,避免订阅无关字段的组件重渲染。",
"keywords": [
"react",
"context",
"hook",
"nested-contexts",
"typescript"
],
"license": "MIT",
"author": "Elcaro377 <Elcaro377@outlook.com>",
"repository": {
"type": "git",
"url": "git+https://github.com/Elcaro377/nested-contexts.git"
},
"homepage": "https://github.com/Elcaro377/nested-contexts#readme",
"bugs": {
"url": "https://github.com/Elcaro377/nested-contexts/issues"
},
"type": "module",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs",
"default": "./dist/index.js"
},
"./package.json": "./package.json"
},
"files": [
"dist"
],
"sideEffects": false,
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsup && tsc -p tsconfig.build.json",
"dev": "tsup --watch",
"typecheck": "tsc --noEmit",
"test": "vitest run",
"test:watch": "vitest",
"prepare": "npm run build",
"prepublishOnly": "npm run typecheck && npm run test"
},
"peerDependencies": {
"react": ">=19.0.0"
},
"devDependencies": {
"@testing-library/jest-dom": "^7.0.0",
"@testing-library/react": "^16.3.2",
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.4",
"@vitejs/plugin-react": "^6.0.5",
"@vitest/coverage-v8": "^4.1.10",
"jsdom": "^29.1.1",
"react": "^19.2.8",
"react-dom": "^19.2.8",
"tsup": "^8.5.1",
"typescript": "^7.0.2",
"vitest": "^4.1.10"
}
}