-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
85 lines (85 loc) · 2.77 KB
/
package.json
File metadata and controls
85 lines (85 loc) · 2.77 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
{
"name": "cache-hub",
"version": "1.0.0",
"type": "module",
"main": "./dist/cjs/index.js",
"types": "./dist/types/index.d.ts",
"description": "零运行时依赖的 Node.js 多层缓存库,统一工作区所有项目的缓存基础设施",
"exports": {
".": {
"types": "./dist/types/index.d.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js"
},
"./multi-level": {
"types": "./dist/types/multi-level-cache.d.ts",
"import": "./dist/esm/multi-level-cache.js",
"require": "./dist/cjs/multi-level-cache.js"
},
"./redis": {
"types": "./dist/types/redis-adapter.d.ts",
"import": "./dist/esm/redis-adapter.js",
"require": "./dist/cjs/redis-adapter.js"
},
"./function-cache": {
"types": "./dist/types/function-cache.d.ts",
"import": "./dist/esm/function-cache.js",
"require": "./dist/cjs/function-cache.js"
},
"./distributed": {
"types": "./dist/types/distributed-invalidator.d.ts",
"import": "./dist/esm/distributed-invalidator.js",
"require": "./dist/cjs/distributed-invalidator.js"
},
"./stringify": {
"types": "./dist/types/stable-stringify.d.ts",
"import": "./dist/esm/stable-stringify.js",
"require": "./dist/cjs/stable-stringify.js"
},
"./read-through": {
"types": "./dist/types/read-through.d.ts",
"import": "./dist/esm/read-through.js",
"require": "./dist/cjs/read-through.js"
}
},
"engines": {
"node": ">=16"
},
"files": [
"dist",
"CHANGELOG.md",
"changelogs"
],
"peerDependencies": {
"ioredis": ">=5.0.0"
},
"peerDependenciesMeta": {
"ioredis": {
"optional": true
}
},
"devDependencies": {
"typescript": "^5.4.0",
"vitest": "^3.0.0",
"@vitest/coverage-v8": "^3.0.0",
"rimraf": "^5.0.0",
"@types/node": "^20.0.0",
"rspress": "^1.47.1"
},
"scripts": {
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"test:integration": "vitest run --config vitest.integration.config.ts",
"test:integration:coverage": "vitest run --config vitest.integration.config.ts --coverage",
"build": "rimraf dist && npm run build:esm && npm run build:cjs && node -e \"require('fs').writeFileSync('dist/cjs/package.json', JSON.stringify({type:'commonjs'}))\"",
"build:esm": "tsc -p tsconfig.json",
"build:cjs": "node scripts/build-cjs.mjs",
"typecheck": "tsc --noEmit",
"prepublishOnly": "npm run typecheck && npm run test:coverage && npm run build",
"docs:dev": "rspress dev --config website/rspress.config.ts",
"docs:build": "rspress build --config website/rspress.config.ts",
"docs:preview": "rspress preview --config website/rspress.config.ts"
},
"dependencies": {}
}