UNPKG

cache2

Version:

一个简单的 JavaScript 缓存管理,支持浏览器端和 node 端。

92 lines (91 loc) 2.62 kB
{ "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/" } }