-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
package.json
93 lines (93 loc) · 3.41 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
{
"name": "globalping-probe",
"version": "0.34.0",
"description": "",
"type": "module",
"main": "dist/index.js",
"author": "jsDelivr team",
"license": "ISC",
"repository": {
"type": "git",
"url": "git+https://github.com/jsdelivr/globalping-probe.git"
},
"dependencies": {
"config": "^3.3.11",
"config-mapper-env": "^2.0.0",
"execa": "^7.2.0",
"got": "^12.6.1",
"http2-wrapper": "^2.2.1",
"ip-regex": "^5.0.0",
"joi": "^17.13.1",
"lodash": "^4.17.21",
"nvm": "github:nvm-sh/nvm",
"physical-cpu-count": "^2.0.0",
"socket.io-client": "^4.7.5",
"throng": "^5.0.0",
"tldts": "^6.0.19",
"winston": "^3.13.0"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@martin-kolarik/eslint-config": "^7.3.2",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@tsconfig/strictest": "^2.0.5",
"@types/blocked": "^1.3.4",
"@types/chai": "^4.3.16",
"@types/config": "^3.3.4",
"@types/lodash": "^4.17.1",
"@types/mocha": "^10.0.6",
"@types/node": "^20.12.11",
"@types/physical-cpu-count": "^2.0.2",
"@types/sinon": "^17.0.3",
"@types/stringify-object": "^4.0.5",
"@types/throng": "^5.0.7",
"@typescript-eslint/eslint-plugin": "^7.8.0",
"blocked": "^1.3.0",
"c8": "^9.1.0",
"chai": "^5.1.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"mocha": "^10.4.0",
"nock": "^13.5.4",
"semantic-release": "^23.0.8",
"sinon": "^17.0.2",
"stringify-object": "^5.0.0",
"testdouble": "^3.20.2",
"ts-node": "^10.9.2",
"tsx": "^4.9.3",
"typescript": "^5.4.5"
},
"scripts": {
"build": "tsc && npm run copy:sh",
"coverage": "npm run clean && c8 npm run test:mocha",
"clean": "rimraf coverage",
"copy:sh": "cp -r src/sh dist/sh; chmod +x dist/sh/*",
"dev": "NODE_ENV=development tsx src/probe.ts",
"watch": "NODE_ENV=development tsx watch src/probe.ts",
"lint": "npm run lint:js && npm run lint:types",
"lint:fix": "npm run lint:js:fix",
"lint:js": "eslint --cache .",
"lint:js:fix": "eslint --cache --fix .",
"lint:types": "tsc --noEmit",
"prepare": "husky || echo 'Failed to install husky'",
"test": "npm run lint:js && npm run test:mocha",
"test:dist": "node test/dist.js",
"test:mocha": "NODE_ENV=test TS_NODE_PROJECT=test/tsconfig.json mocha",
"test:mocha:dev": "SNAPSHOT_RESPONSES=1 TS_NODE_TRANSPILE_ONLY=true NODE_ENV=test mocha",
"test:mocha:dev:prune": "PRUNE_OLD_SNAPSHOTS=1 npm run test:mocha:dev",
"test:mocha:dev:update": "PRUNE_OLD_SNAPSHOTS=1 UPDATE_EXISTING_SNAPSHOTS=1 npm run test:mocha:dev",
"test:mocha:dev:updateNoPrune": "UPDATE_EXISTING_SNAPSHOTS=1 npm run test:mocha:dev",
"test:e2e": "npm run test:e2e:cases && npm run test:e2e:docker && npm run test:e2e:run",
"test:e2e:cases": "git clone https://github.com/jsdelivr/globalping.git test/e2e/globalping; cd test/e2e/globalping && git add . && git reset --hard && git pull --force && npm install; cd ../../../; for f in config/e2e-api-*; do cp \"$f\" \"test/e2e/globalping/config/${f#config/e2e-api-}\"; done;",
"test:e2e:docker": "docker build -t globalping-probe-e2e . && docker build --build-arg BUILDKIT_CONTEXT_KEEP_GIT_DIR=1 -t globalping-api-e2e test/e2e/globalping",
"test:e2e:run": "cd test/e2e/globalping; TS_NODE_TRANSPILE_ONLY=true NODE_ENV=test mocha --config ./.mocharc.e2e.cjs; cd ../../../"
},
"lint-staged": {
"*.{cjs,js,json,ts}": "eslint --cache --fix"
},
"engines": {
"node": "16 || 18 || 20"
}
}