@antv/util
Version:
> AntV 底层依赖的工具库,不建议在自己业务中使用。
98 lines • 2.57 kB
JSON
{
"name": "@antv/util",
"version": "3.3.10",
"license": "MIT",
"sideEffects": false,
"main": "lib/index.js",
"module": "esm/index.js",
"unpkg": "dist/util.min.js",
"types": "lib/index.d.ts",
"files": [
"src",
"lib",
"esm",
"dist"
],
"keywords": [
"util",
"antv"
],
"devDependencies": {
"@antv/path-util": "^2.0.15",
"@commitlint/cli": "^18.6.1",
"@commitlint/config-conventional": "^18.6.3",
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@types/jest": "^26.0.20",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"benchmark": "^2.1.4",
"eslint": "^7.22.0",
"eslint-plugin-import": "^2.22.1",
"husky": "^5.2.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jsdom": "^25.0.0",
"limit-size": "^0.1.4",
"lint-staged": "^15.2.10",
"npm-run-all": "^4.1.5",
"prettier": "^3.3.3",
"rimraf": "^3.0.2",
"rollup": "^4.22.0",
"ts-jest": "^29.2.5",
"typescript": "^5"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "jsdom",
"collectCoverage": true,
"testRegex": "(/__tests__/.*\\.(test|spec))\\.ts$",
"collectCoverageFrom": [
"src/**/*.ts"
]
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write"
]
},
"limit-size": [
{
"path": "dist/util.min.js",
"limit": "15 Kb",
"gzip": true
},
{
"path": "dist/util.min.js",
"limit": "40 Kb"
}
],
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"dependencies": {
"fast-deep-equal": "^3.1.3",
"gl-matrix": "^3.3.0",
"tslib": "^2.3.1"
},
"repository": "https://github.com/antvis/util.git",
"scripts": {
"clean": "rimraf lib esm dist",
"lint-staged": "lint-staged",
"size": "limit-size",
"lint": "eslint ./src ./__tests__ && prettier ./src ./__tests__ --check ",
"fix": "eslint ./src ./__tests__ --fix && prettier ./src ./__tests__ --write ",
"test": "jest",
"build:umd": "rimraf ./dist && rollup -c && npm run size",
"build:cjs": "rimraf ./lib && tsc --module commonjs --outDir lib",
"build:esm": "rimraf ./esm && tsc --module ESNext --outDir esm",
"build": "run-p build:*",
"ci": "run-s lint test build",
"benchmarks": "node benchmarks/path-2-string.test && node benchmarks/path-2-absolute.test"
}
}