You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
100 lines
2.6 KiB
100 lines
2.6 KiB
{
|
|
"name": "@antv/util",
|
|
"version": "3.3.11",
|
|
"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"
|
|
],
|
|
"scripts": {
|
|
"clean": "rimraf lib esm dist",
|
|
"lint-staged": "lint-staged",
|
|
"size": "limit-size",
|
|
"lint": "eslint ./src ./__tests__ && prettier ./src ./__tests__ --check && lint-md docs/**/* README.md",
|
|
"fix": "eslint ./src ./__tests__ --fix && prettier ./src ./__tests__ --write && lint-md docs/**/* README.md --fix",
|
|
"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",
|
|
"prepublishOnly": "npm run ci",
|
|
"benchmarks": "node benchmarks/path-2-string.test && node benchmarks/path-2-absolute.test"
|
|
},
|
|
"keywords": [
|
|
"util",
|
|
"antv"
|
|
],
|
|
"devDependencies": {
|
|
"@antv/path-util": "^2.0.15",
|
|
"@commitlint/cli": "^18.6.1",
|
|
"@commitlint/config-conventional": "^18.6.3",
|
|
"@lint-md/cli": "^2.0.0",
|
|
"@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"
|
|
}
|
|
|