-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
106 lines (106 loc) · 3.52 KB
/
Copy pathpackage.json
File metadata and controls
106 lines (106 loc) · 3.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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"name": "model-reaction",
"version": "1.1.1",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"types": "dist/types/index.d.ts",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/index.esm.js",
"require": "./dist/index.cjs.js",
"default": "./dist/index.js"
},
"./react": {
"types": "./dist/types/react.d.ts",
"import": "./dist/react.esm.js",
"require": "./dist/react.cjs.js"
}
},
"sideEffects": false,
"files": [
"dist",
"docs",
"examples",
"AGENTS.md",
"README.md",
"README_CN.md",
"LICENSE"
],
"engines": {
"node": ">=16"
},
"scripts": {
"build": "rimraf dist && rollup -c",
"test": "jest",
"typecheck:test": "tsc --noEmit -p tsconfig.test.json",
"format": "prettier --write src/**/*.ts",
"lint": "eslint \"src/**/*.{ts,js}\"",
"lint:fix": "eslint \"src/**/*.{ts,js}\" --fix",
"prepublishOnly": "npm run lint && npm run typecheck:test && npm test && npm run build",
"example:basic": "ts-node -O '{\"module\":\"commonjs\",\"moduleResolution\":\"node\"}' examples/basic-usage.ts",
"example:react": "tsx examples/react-bindings.tsx",
"example:reaction": "ts-node -O '{\"module\":\"commonjs\",\"moduleResolution\":\"node\"}' examples/reaction-system.ts",
"example:async": "ts-node -O '{\"module\":\"commonjs\",\"moduleResolution\":\"node\"}' examples/async-validation.ts",
"example:event": "ts-node -O '{\"module\":\"commonjs\",\"moduleResolution\":\"node\"}' examples/event-listening.ts",
"example:complex": "ts-node -O '{\"module\":\"commonjs\",\"moduleResolution\":\"node\"}' examples/complex-form.ts",
"example:multi-record": "ts-node -O '{\"module\":\"commonjs\",\"moduleResolution\":\"node\"}' examples/multi-record-deep-deps.ts",
"examples": "npm run example:basic && npm run example:reaction && npm run example:async && npm run example:event && npm run example:complex && npm run example:multi-record && npm run example:react"
},
"keywords": [
"model",
"reaction",
"validation",
"batch",
"typescript"
],
"author": "Zephyr <zzh627@126.com>",
"license": "ISC",
"description": "A TypeScript model library with validation, reaction system, and batch operations",
"homepage": "https://github.com/EdwardZZZ/model-reaction",
"repository": {
"type": "git",
"url": "git+https://github.com/EdwardZZZ/model-reaction.git"
},
"bugs": {
"url": "https://github.com/EdwardZZZ/model-reaction/issues"
},
"peerDependencies": {
"react": ">=18.0.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
}
},
"devDependencies": {
"@eslint/js": "^9.39.2",
"@rollup/plugin-alias": "^5.1.1",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-replace": "^6.0.2",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.4",
"@testing-library/react": "^16.3.2",
"@types/jest": "^30.0.0",
"@types/node": "^24.2.1",
"@types/react": "^19.2.15",
"@types/react-dom": "^19.2.3",
"eslint": "^9.39.2",
"eslint-config-prettier": "^10.1.8",
"globals": "^16.5.0",
"jest": "^30.0.5",
"jest-environment-jsdom": "^30.4.1",
"prettier": "^3.7.4",
"react": "^19.2.6",
"react-dom": "^19.2.6",
"rimraf": "^6.0.1",
"rollup": "^2.79.2",
"ts-jest": "^29.4.1",
"ts-node": "^10.9.2",
"tslib": "^2.8.1",
"tsx": "^4.22.3",
"typescript": "^5.9.2",
"typescript-eslint": "^8.51.0"
}
}