-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathpackage.json
99 lines (99 loc) · 2.55 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
{
"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"
],
"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",
"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",
"@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"
}