-
Notifications
You must be signed in to change notification settings - Fork 238
/
package.json
69 lines (69 loc) · 1.66 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
{
"name": "@antv/coord",
"version": "0.3.1",
"description": "The coordinate module for G2",
"author": "https://github.com/orgs/antvis/people",
"license": "MIT",
"main": "lib/index.js",
"module": "esm/index.js",
"types": "lib/index.d.ts",
"files": [
"src",
"lib",
"esm"
],
"repository": {
"type": "git",
"url": "git@github.com:antvis/coord.git"
},
"scripts": {
"build": "run-s clean lib",
"clean": "rimraf lib esm",
"lib": "run-p lib:*",
"lib:cjs": "tsc -p tsconfig.json --target ES5 --module commonjs --outDir lib",
"lib:esm": "tsc -p tsconfig.json --target ES5 --module ESNext --outDir esm",
"lint": "prettier ./src ./__tests__ --check",
"fix": "prettier ./src ./__tests__ --write",
"lint-staged": "lint-staged",
"test": "jest",
"test-live": "DEBUG_MODE=1 jest",
"ci": "run-s lint build test"
},
"husky": {
"hooks": {
"pre-commit": "run-s lint-staged test build"
}
},
"devDependencies": {
"@types/jest": "^26.0.20",
"husky": "^5.1.0",
"jest": "^26.6.3",
"lint-staged": "^10.5.4",
"npm-run-all": "^4.1.5",
"prettier": "^2.2.1",
"rimraf": "^3.0.2",
"ts-jest": "^26.5.1",
"typescript": "^4.1.5"
},
"dependencies": {
"@antv/util": "~2.0.12",
"@antv/matrix-util": "^3.1.0-beta.2",
"tslib": "^2.1.0"
},
"lint-staged": {
"*.{js,css,json,md,ts}": [
"prettier --write",
"git add"
]
},
"jest": {
"preset": "ts-jest",
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.{ts,js}",
"!**/node_modules/**",
"!**/vendor/**"
],
"testRegex": "/__tests__/.*spec\\.ts?$"
}
}