-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
91 lines (91 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
89
90
91
{
"name": "cache2",
"version": "3.1.2",
"description": "一个简单的 JavaScript 缓存管理,支持浏览器端和 node 端。",
"scripts": {
"test": "jest --verbose",
"test:coverage": "jest --verbose --coverage",
"build": "rm -rf dist && npm run build:module && npm run build:umd && npm run build:types",
"build:module": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
"build:umd": "rollup --config rollup.umd.config.ts --configPlugin @rollup/plugin-typescript",
"build:types": "rm -rf types && tsc -p tsconfig.types.json",
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
"lint": "eslint --ext .js,.jsx,.ts,.tsx src",
"lint:fix": "npm run lint -- --fix",
"prepublishOnly": "npm test && npm run build",
"tsc": "tsc --noEmit",
"commit": "cz",
"prepare": "husky install"
},
"files": [
"dist",
"types"
],
"main": "dist/cache2.cjs.js",
"module": "dist/cache2.esm.js",
"unpkg": "dist/cache2.min.js",
"types": "types/index.d.ts",
"config": {
"commitizen": {
"path": "@commitlint/cz-commitlint"
}
},
"lint-staged": {
"*.{js,jsx,less,md,json}": [
"prettier --write"
],
"*.ts?(x)": [
"prettier --parser=typescript --write"
],
"**/*.{js,jsx,ts,tsx}": "eslint"
},
"repository": {
"type": "git",
"url": "git+https://github.com/caijf/cache2.git"
},
"keywords": [
"cache",
"node",
"browser",
"store",
"storage",
"memory",
"ttl"
],
"author": "caijf",
"license": "MIT",
"bugs": {
"url": "https://github.com/caijf/cache2/issues"
},
"homepage": "https://github.com/caijf/cache2#readme",
"devDependencies": {
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@commitlint/cz-commitlint": "^19.5.0",
"@rollup/plugin-commonjs": "^25.0.8",
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@types/jest": "^29.5.13",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"commitizen": "^4.3.1",
"eslint": "^8.57.1",
"husky": "^9.1.6",
"inquirer": "^9.3.7",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"rollup": "^4.24.0",
"ts-jest": "^29.2.5",
"typescript": "^5.6.3"
},
"dependencies": {
"emitter-pro": "^1.2.2",
"tslib": "^2.7.0"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}