Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
112 lines (112 loc) · 2.62 KB
/
Copy pathpackage.json
File metadata and controls
112 lines (112 loc) · 2.62 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
110
111
112
{
"name": "use-form-history",
"version": "0.0.2",
"description": "Lightweight undo/redo state manager for forms with debounced snapshots and diff-based storage",
"author": "Muhammad Mustafa",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/muhammad4dev/use-form-history.git"
},
"homepage": "https://muhammad4dev.github.io/use-form-history",
"licenses": [
{
"type": "MIT",
"url": "https://github.com/muhammad4dev/use-form-history/blob/main/LICENSE"
}
],
"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"
},
"./core": {
"types": "./dist/core/index.d.ts",
"import": "./dist/core/index.js",
"require": "./dist/core/index.cjs"
},
"./react": {
"types": "./dist/react/index.d.ts",
"import": "./dist/react/index.js",
"require": "./dist/react/index.cjs"
},
"./vanilla": {
"types": "./dist/vanilla/index.d.ts",
"import": "./dist/vanilla/index.js",
"require": "./dist/vanilla/index.cjs"
}
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"typesVersions": {
"*": {
"*": [
"./dist/index.d.ts"
],
"react": [
"./dist/react/index.d.ts"
],
"core": [
"./dist/core/index.d.ts"
],
"vanilla": [
"./dist/vanilla/index.d.ts"
]
}
},
"keywords": [
"undo",
"redo",
"form",
"history",
"state-management",
"react",
"react-hook",
"contenteditable",
"diff",
"snapshot",
"debounce"
],
"scripts": {
"dev": "tsup --watch",
"build": "tsup",
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"typecheck": "tsc --noEmit",
"lint": "eslint src --ext .ts,.tsx",
"prepublishOnly": "pnpm run build && pnpm run test"
},
"peerDependencies": {
"react": ">=16.8.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
}
},
"devDependencies": {
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/react": "^14.1.2",
"@types/node": "^20.10.5",
"@types/react": "^18.2.45",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"@vitest/coverage-v8": "^4.0.0",
"eslint": "^8.56.0",
"jsdom": "^23.0.1",
"react": "^18.2.0",
"tsup": "^8.0.1",
"typescript": "^5.3.3",
"vitest": "^4.0.0"
},
"packageManager": "pnpm@10.0.0"
}