-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
107 lines (107 loc) · 3.03 KB
/
Copy pathpackage.json
File metadata and controls
107 lines (107 loc) · 3.03 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
{
"name": "erest",
"version": "3.2.2",
"description": "Framework-agnostic REST API framework with Zod validation, auto docs & test scaffolding. Express/Koa/@leizm/web adapters as separate packages.",
"type": "module",
"main": "dist/lib/index.js",
"types": "dist/lib/index.d.ts",
"exports": {
".": {
"types": "./dist/lib/index.d.ts",
"import": "./dist/lib/index.js"
},
"./package.json": "./package.json"
},
"files": [
"dist/lib"
],
"scripts": {
"doc": "typedoc --excludeExternals --out docs/ src/lib/",
"dev": "export ISLIB=1 && vitest --watch",
"test": "npm run build && npm run build:packages && vitest run && pnpm --filter erest-example test",
"test:lib": "export ISLIB=1 && vitest run",
"test:cov": "export ISLIB=1 && vitest run --coverage",
"test:examples": "pnpm --filter erest-example test",
"bench": "export ISLIB=1 && vitest bench --config vitest.bench.config.ts",
"tag": "git tag v`node -p 'require(\"./package\").version'`",
"format": "oxfmt --write src examples/src examples/test",
"check": "oxlint src examples/src examples/test && oxfmt --check src examples/src examples/test",
"clean": "rm -rf dist",
"build": "npm run clean && tsc",
"build:packages": "pnpm --filter @erest/express --filter @erest/koa --filter @erest/leizmweb --filter @erest/gen build",
"publish:all": "pnpm publish -r --no-git-checks --access public",
"prepublishOnly": "npm run format && npm run test",
"postpublish": "npm run tag && git push && git push --tags",
"prepare": "husky"
},
"repository": {
"type": "git",
"url": "git+https://github.com/yourtion/node-erest.git"
},
"keywords": [
"rest",
"api",
"api-doc",
"express",
"koa",
"@leizm/web",
"zod",
"typescript",
"swagger",
"postman"
],
"author": "Yourtion Guo <yourtion@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/yourtion/node-erest/issues"
},
"homepage": "https://github.com/yourtion/node-erest#readme",
"dependencies": {
"debug": "^4.4.1",
"path-to-regexp": "^6.3.0"
},
"peerDependencies": {
"@types/node": "*",
"zod": "^4.0.0"
},
"peerDependenciesMeta": {
"zod": {
"optional": false
}
},
"devDependencies": {
"@leizm/web": "^2.7.3",
"@types/debug": "^4.1.12",
"@types/express": "^5.0.0",
"@types/koa": "^2.15.0",
"@types/koa-bodyparser": "^4.3.12",
"@types/koa-router": "^7.4.8",
"@types/node": "^24.0.15",
"@vitest/coverage-v8": "^3.2.4",
"@vitest/ui": "^3.2.4",
"express": "^5.1.0",
"husky": "^9.1.7",
"koa": "^3.0.0",
"koa-bodyparser": "^4.4.1",
"koa-router": "^13.1.1",
"lint-staged": "^17.0.8",
"memfs": "^4.36.0",
"oxfmt": "0.56.0",
"oxlint": "1.71.0",
"typedoc": "^0.28.19",
"typescript": "^5.8.3",
"vitest": "^3.2.4",
"zod": "^4.4.3"
},
"pnpm": {
"onlyBuiltDependencies": [
"esbuild"
]
},
"lint-staged": {
"*.{ts,js}": [
"oxfmt --write",
"oxlint --fix"
]
}
}