{ "name": "util-helpers", "version": "5.8.3", "description": "一个基于业务场景的工具方法库", "main": "lib/index.js", "module": "esm/index.js", "unpkg": "dist/util-helpers.min.js", "browser": "dist/util-helpers.min.js", "sideEffects": false, "types": "types/index.d.ts", "exports": { ".": { "types": "./types/index.d.ts", "node": "./lib/index.js", "import": "./esm/index.js", "require": "./lib/index.js", "default": "./lib/index.js" }, "./esm/*.js": { "types": "./types/*.d.ts", "default": "./esm/*.js" }, "./esm/*": { "types": "./types/*.d.ts", "default": "./esm/*.js" }, "./lib/*.js": { "types": "./types/*.d.ts", "default": "./lib/*.js" }, "./lib/*": { "types": "./types/*.d.ts", "default": "./lib/*.js" }, "./dist/*": "./dist/*", "./package.json": "./package.json" }, "scripts": { "test": "jest --verbose --maxWorkers=50%", "test:coverage": "jest --coverage --maxWorkers=50%", "test:coverage:local": "cross-env COVERAGE_LOCAL=1 jest --coverage --maxWorkers=50% && open ./coverage/lcov-report/index.html", "build": "rm -rf esm lib dist && rollup -c && pnpm run build:types", "build:types": "rm -rf types && tsc -p tsconfig.build.json -d --outDir types --emitDeclarationOnly", "build:doc": "pnpm run doc", "doc": "rm -rf docs && rm -rf docs-src && tsc -p tsconfig.build.json -t esnext --outDir docs-src && jsdoc -c conf.json && rm -rf docs-src", "doc:open": "open ./docs/index.html", "prettier": "prettier --write .", "lint": "eslint .", "lint:fix": "pnpm run lint -- --fix", "commit": "cz", "prepublishOnly": "pnpm test && pnpm run build", "tsc": "tsc --noEmit", "prepare": "husky" }, "engines": { "node": ">=18" }, "repository": { "type": "git", "url": "git+https://github.com/doly-dev/util-helpers.git" }, "files": [ "esm", "lib", "dist", "types" ], "keywords": [ "util", "helpers", "util-helpers", "business", "business-util", "biz-util" ], "author": "caijf", "license": "MIT", "bugs": { "url": "https://github.com/doly-dev/util-helpers/issues" }, "homepage": "https://doly-dev.github.io/util-helpers/index.html", "devDependencies": { "@commitlint/cli": "^21.2.4", "@commitlint/config-conventional": "^21.2.4", "@commitlint/cz-commitlint": "^21.2.4", "@eslint/js": "^10.0.1", "@rollup/plugin-commonjs": "^29.0.3", "@rollup/plugin-node-resolve": "^16.0.3", "@rollup/plugin-replace": "^6.0.3", "@rollup/plugin-terser": "^1.0.2", "@rollup/plugin-typescript": "^12.3.1", "@types/jest": "^30.0.0", "commitizen": "^4.3.2", "cross-env": "^10.1.0", "docdash": "^2.0.2", "eslint": "^10.15.0", "globals": "^17.14.0", "husky": "^9.1.7", "jest": "^30.5.2", "jest-canvas-mock": "^2.5.8", "jest-environment-jsdom": "^30.5.2", "jsdoc": "^4.0.5", "lint-staged": "^17.6.1", "prettier": "^3.10.1", "rollup": "^4.68.7", "ts-jest": "^29.4.15", "typescript": "^5.9.3", "typescript-eslint": "^8.73.0" }, "lint-staged": { "**/*.ts": "eslint", "**/*.{js,ts,md}": "prettier -w" }, "config": { "commitizen": { "path": "@commitlint/cz-commitlint" } }, "dependencies": { "cache2": "^3.1.6", "tslib": "^2.9.1", "ut2": "^1.21.7" }, "publishConfig": { "registry": "https://registry.npmjs.org/" } }