Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
116 lines (116 loc) · 3.99 KB
/
Copy pathpackage.json
File metadata and controls
116 lines (116 loc) · 3.99 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
{
"name": "erest",
"version": "3.5.0",
"description": "Framework-agnostic REST API framework with Zod validation, auto docs & test scaffolding. Express/Koa/@leizm/web/H3 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 && npm run test:h3-types && vitest run && pnpm --filter erest-example test",
"test:contract": "ISLIB=1 vitest run src/test/test-contract-consistency.ts src/test/test-openapi.ts",
"test:lib": "export ISLIB=1 && vitest run",
"test:cov": "export ISLIB=1 && vitest run --coverage",
"test:release": "node --test scripts/npm-release.test.mjs",
"mutation": "node .github/scripts/mutation.mjs",
"mutation:full": "node .github/scripts/mutation.mjs --force",
"mutation:incremental": "node .github/scripts/mutation.mjs",
"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 packages/erest-express/src packages/erest-koa/src packages/erest-leizmweb/src packages/erest-h3/src examples/src examples/test",
"check": "oxlint src packages/erest-express/src packages/erest-koa/src packages/erest-leizmweb/src packages/erest-h3/src examples/src examples/test && oxfmt --check src packages/erest-express/src packages/erest-koa/src packages/erest-leizmweb/src packages/erest-h3/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/h3 --filter @erest/gen build",
"publish:all": "pnpm publish -r --no-git-checks --access public",
"prepublishOnly": "npm run format && npm run test",
"prepare": "husky",
"test:h3-types": "tsc -p packages/erest-h3/tsconfig.test.json",
"test:adapters": "vitest run src/test/test-adapter-contract.ts src/test/test-portable-business.ts"
},
"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",
"h3"
],
"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": {
"@apidevtools/swagger-parser": "^10.1.0",
"@leizm/web": "^2.7.3",
"@stryker-mutator/core": "^10.0.0",
"@stryker-mutator/vitest-runner": "^10.0.0",
"@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",
"ajv": "^8.20.0",
"ajv-draft-04": "^1.0.0",
"axios": "^1.12.0",
"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",
"h3": "^2.0.8"
},
"lint-staged": {
"*.{ts,js}": [
"oxfmt --write",
"oxlint --fix"
]
}
}