Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
119 lines (119 loc) · 3.59 KB
/
Copy pathpackage.json
File metadata and controls
119 lines (119 loc) · 3.59 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"name": "@koa/router",
"description": "Router middleware for Koa.",
"version": "15.7.0",
"author": "Koa.js",
"bugs": {
"url": "https://github.com/koajs/router/issues",
"email": "niftylettuce@gmail.com"
},
"contributors": [
{
"name": "@koajs"
},
{
"name": "Imed Jaberi",
"email": "imed-jaberi@outlook.com"
}
],
"peerDependencies": {
"koa": "^2.0.0 || ^3.0.0"
},
"peerDependenciesMeta": {
"koa": {
"optional": false
}
},
"dependencies": {
"debug": "^4.4.3",
"http-errors": "^2.0.1",
"koa-compose": "^4.1.0",
"path-to-regexp": "^8.4.2"
},
"devDependencies": {
"@commitlint/cli": "^21.2.2",
"@commitlint/config-conventional": "^21.2.2",
"@eslint/js": "^10.0.1",
"@koa/bodyparser": "^6.1.0",
"@types/debug": "^4.1.13",
"@types/jsonwebtoken": "^9.0.10",
"@types/koa": "^3.0.3",
"@types/node": "^26.6.2",
"@types/supertest": "^7.2.1",
"@typescript-eslint/eslint-plugin": "^8.70.0",
"@typescript-eslint/parser": "^8.70.0",
"c8": "^12.0.0",
"chalk": "^6.0.0",
"eslint": "^10.11.0",
"eslint-plugin-unicorn": "^73.0.0",
"husky": "^9.1.7",
"joi": "^18.2.9",
"jsonwebtoken": "^9.0.3",
"koa": "^3.2.1",
"lint-staged": "^17.5.1",
"np": "^12.1.1",
"prettier": "^3.9.8",
"rimraf": "^6.1.3",
"supertest": "^7.2.2",
"ts-node": "^10.9.2",
"tsup": "^8.5.1",
"typescript": "^5.9.3"
},
"engines": {
"node": ">= 20"
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"import": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"require": "./dist/index.js"
}
}
},
"files": [
"dist",
"LICENSE",
"README.md"
],
"homepage": "https://github.com/koajs/router",
"keywords": [
"koa",
"middleware",
"route",
"router"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/koajs/router.git"
},
"scripts": {
"bench": "TS_NODE_PROJECT=tsconfig.bench.json node --require ts-node/register bench/run.ts",
"benchmark": "npm run bench",
"bench:all": "TS_NODE_PROJECT=tsconfig.bench.json node --require ts-node/register bench/make.ts",
"benchmark:all": "npm run bench:all",
"prepare": "husky install",
"format": "prettier --write \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\"",
"format:check": "prettier --check \"**/*.{ts,tsx,js,jsx,json,md,yml,yaml}\"",
"lint:ts": "eslint src test --fix",
"lint": "npm run lint:ts",
"test:core": "TS_NODE_PROJECT=tsconfig.ts-node.json node --require ts-node/register --test test/*.test.ts test/**/*.test.ts",
"test:recipes": "TS_NODE_PROJECT=tsconfig.recipes.json node --require ts-node/register --test recipes/**/*.test.ts",
"pretest:all": "npm run lint && npm run build",
"test:all": "TS_NODE_PROJECT=tsconfig.ts-node.json node --require ts-node/register --test test/*.test.ts test/**/*.test.ts recipes/**/*.test.ts",
"test:coverage": "c8 --all --exclude eslint.config.js --exclude tsup.config.ts --exclude src/types.ts --exclude \"bench/**\" --exclude \"dist/**\" --exclude \"recipes/**\" --exclude \"test/**\" --exclude-after-remap npm run test:all",
"ts:check": "tsc --noEmit --project tsconfig.typecheck.json",
"ts:check:test": "tsc --noEmit --project tsconfig.test.json",
"prebuild": "rimraf dist",
"build": "tsup",
"prepublishOnly": "npm run build",
"release": "np --test-script test:all"
}
}