-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
88 lines (88 loc) · 2.56 KB
/
package.json
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
{
"name": "idmp",
"version": "2.1.12",
"keywords": [
"deduplicate network requests",
"idempotent function",
"duplicate API calls",
"swr without hooks",
"request deduplication",
"network request caching",
"API caching",
"cache API responses",
"concurrent API calls",
"eliminate duplicate requests",
"retry failed requests",
"immutable data",
"auto retry"
],
"homepage": "https://idmp.haozi.me",
"bugs": "https://github.com/ha0z1/idmp/issues",
"repository": {
"type": "git",
"url": "https://github.com/ha0z1/idmp.git"
},
"license": "MIT",
"type": "module",
"exports": {
".": {
"default": {
"require": "./dist/index.node.cjs",
"default": "./dist/index.js"
}
},
"./node-fs": {
"default": {
"require": "./plugins/node-fs/dist/index.node.cjs",
"default": "./plugins/node-fs/dist/index.js"
}
},
"./browser-storage": {
"default": {
"require": "./plugins/browser-storage/dist/index.node.cjs",
"default": "./plugins/browser-storage/dist/index.js"
}
}
},
"main": "./dist/index.node.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"api": "pnpm vite-node -w mock/api.ts",
"build": "tsc && vite-node scripts/build.ts && pnpm run -r build",
"coverage": "pnpm run build && vitest run --coverage",
"dev": "tsc && pnpm run lint && vite & pnpm run -r dev",
"lint": "prettier . --write",
"prepublishOnly": "pnpm run build && vite-node scripts/clean.ts",
"publish:alpha": "pnpm publish --no-git-checks --registry https://registry.npmjs.org --tag alpha",
"test": "vitest",
"www": "pnpm run build && NODE_ENV=development pnpm vite build -c vite.demo.config.ts",
"www-dev": "pnpm run build && pnpm vite build -c vite.demo.config.ts"
},
"dependencies": {
"fs-extra": "^11.2.0",
"serialize-javascript": "^6.0.2"
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.10.2",
"@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2",
"@vitejs/plugin-legacy": "^6.0.0",
"@vitejs/plugin-react-swc": "^3.7.2",
"@vitest/coverage-istanbul": "^2.1.8",
"fs-extra": "^11.2.0",
"immer": "^10.1.1",
"prettier": "^3.4.2",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-router-dom": "^7.1.1",
"typescript": "^5.7.2",
"vite": "^6.0.6",
"vite-node": "^2.1.8",
"vite-plugin-banner": "^0.8.0",
"vite-plugin-dts": "^4.4.0",
"vite-plugin-html": "^3.2.2",
"vitest": "^2.1.8"
}
}