-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
63 lines (63 loc) · 1.86 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
{
"name": "wrr-plus",
"version": "1.3.0",
"description": "Weighted Round Robin Plus (加权轮训调度算法加强版)",
"author": "Chakhsu.Lau",
"license": "MIT",
"keywords": [
"wrr",
"Weighted Round Robin",
"plus",
"typescript",
"math"
],
"repository": {
"type": "git",
"url": "https://github.com/chakhsu/wrr-plus"
},
"homepage": "https://github.com/chakhsu/wrr-plus",
"bugs": {
"url": "https://github.com/chakhsu/wrr-plus/issues"
},
"exports": {
".": {
"types": "./lib/types/index.d.ts",
"import": "./lib/esm/index.js",
"require": "./lib/cjs/index.js"
},
"./package.json": "./package.json"
},
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
"types": "lib/types/index.d.ts",
"scripts": {
"clear": "rimraf lib && rimraf coverage",
"patch:cjs-type": "echo '{ \"type\": \"commonjs\" }' >> lib/cjs/package.json",
"build:cjs": "tsc -P tsconfig.cjs.json && pnpm patch:cjs-type",
"patch:esm-type": "echo '{ \"type\": \"module\" }' >> lib/esm/package.json",
"patch:esm-js": "tsc-esm-fix --tsconfig=tsconfig.esm.json",
"build:esm": "tsc -P tsconfig.esm.json && pnpm patch:esm-js && pnpm patch:esm-type",
"build": "pnpm clear && pnpm build:cjs && pnpm build:esm",
"lint:prettier": "prettier --cache --check --ignore-path .gitignore --ignore-path .prettierignore .",
"prettier": "pnpm lint:prettier --write",
"prepare": "husky install",
"test": "jest"
},
"dependencies": {
"joi": "^17.13.1",
"mathjs": "^12.4.2"
},
"devDependencies": {
"@types/jest": "^29.5.12",
"@types/node": "^20.12.8",
"husky": "^9.0.11",
"jest": "^29.7.0",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"tsc-esm-fix": "^2.20.27",
"typescript": "^5.4.5"
}
}