cache2
Version:
一个简单的 JavaScript 缓存管理,支持浏览器端和 node 端。
91 lines (90 loc) • 2.42 kB
JSON
{
"name": "cache2",
"version": "3.1.5",
"description": "一个简单的 JavaScript 缓存管理,支持浏览器端和 node 端。",
"scripts": {
"test": "jest --verbose",
"test:coverage": "jest --verbose --coverage",
"build": "rm -rf dist && rollup --config rollup.config.ts --configPlugin typescript && npm run build:types",
"build:types": "rm -rf types && tsc -p tsconfig.types.json",
"prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
"lint": "eslint .",
"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",
"browser": "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.8.1",
"@commitlint/config-conventional": "^19.8.1",
"@commitlint/cz-commitlint": "^19.8.1",
"@eslint/js": "^9.39.2",
"@rollup/plugin-commonjs": "^28.0.9",
"@rollup/plugin-node-resolve": "^16.0.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.3.0",
"@types/jest": "^30.0.0",
"commitizen": "^4.3.1",
"eslint": "^9.39.2",
"globals": "^16.5.0",
"husky": "^9.1.7",
"jest": "^30.2.0",
"jest-environment-jsdom": "^30.2.0",
"lint-staged": "^15.5.2",
"prettier": "^3.8.1",
"rollup": "^4.57.0",
"ts-jest": "^29.4.6",
"typescript": "^5.9.3",
"typescript-eslint": "^8.54.0"
},
"dependencies": {
"emitter-pro": "^1.2.4",
"tslib": "^2.8.1"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}