Refactor code structure for improved readability and maintainability

This commit is contained in:
marco.chan committed 2026-09-03 15:23:01 +08:00
1 parent 7d31889e81
commit f0f60add78
19 files changed
+2460 -1

No files matched your search

+26 -1
View File
@@ -1,4 +1,29 @@
{
"name": "study-koa-trest",
"packageManager": "yarn@4.18.0"
"packageManager": "yarn@4.18.0",
"type": "module",
"scripts": {
"dev": "tsx --watch ./src/index.ts",
"start": "node ./dist/index.js",
"build": "tsc",
"clean": "rm -rf dist",
"compile": "yarn clean && yarn build",
"script": "tsx"
},
"dependencies": {
"@jig-software/trest": "2.0.0-beta",
"@koa/cors": "^5.0.0",
"@koa/router": "^15.7.0",
"koa": "^3.2.1",
"koa-bodyparser": "^4.4.1"
},
"devDependencies": {
"@types/koa": "^3.0.3",
"@types/koa-bodyparser": "^4",
"@types/koa__cors": "^5",
"@types/node": "^26.4.1",
"nodemon": "^3.1.14",
"tsx": "^4.23.13",
"typescript": "^5.9.3"
}
}