Skip to content
This repository was archived by the owner on Feb 9, 2026. It is now read-only.

Commit 427fada

Browse files
Refactor code structure for improved readability and maintainability
1 parent 4c59c3e commit 427fada

4 files changed

Lines changed: 1326 additions & 3006 deletions

File tree

dist/package.json

Lines changed: 51 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,53 @@
11
{
2-
"name": "moodle-openapi-server",
3-
"version": "1.0.11",
4-
"description": "Moddle OpenAPI server",
5-
"private": true,
6-
"type": "module",
7-
"bin": {
8-
"moodle-openapi-server": "./dist/index.js"
9-
},
10-
"files": ["dist"],
11-
"scripts": {
12-
"build": "tsgo && ts-add-js-extension --dir=dist && cp package.json dist/package.json",
13-
"bundle": "bun build src/server.ts --outfile=dist/server.bundle.js",
14-
"build:binary": "bun build src/server.ts --compile --outfile=dist/server",
15-
"build:docker": "docker build --build-arg GITHUB_TOKEN=${GITHUB_TOKEN} -t moodle-openapi-server .",
16-
"typecheck": "tsgo --noEmit",
17-
"test": "bun test",
18-
"dev": "bun --watch src/server.ts",
19-
"dev:mcp": "bun --watch src/index.ts",
20-
"dev:all": "concurrently \"pnpm dev\" \"pnpm dev:mcp\"",
21-
"start:all": "concurrently \"bun dist/src/server.js\" \"bun dist/src/index.js\"",
22-
"start": "bun dist/server.bundle.js",
23-
"inspect": "fastmcp inspect src/index.ts",
24-
"prepare": "husky"
25-
},
26-
"dependencies": {
27-
"@dotenvx/dotenvx": "^1.44.1",
28-
"@microsoft/microsoft-graph-client": "^3.0.7",
29-
"@toptiertools/moodle-client": "^1.0.12",
30-
"@total-typescript/ts-reset": "^0.6.1",
31-
"concurrently": "^8.2.2",
32-
"es-toolkit": "^1.39.3",
33-
"fastmcp": "^1.27.7",
34-
"hono": "^4.7.11",
35-
"zod": "^3.25.56"
36-
},
37-
"devDependencies": {
38-
"@apiture/openapi-down-convert": "^0.14.1",
39-
"@biomejs/biome": "^1.9.4",
40-
"@kubb/cli": "^3.10.15",
41-
"@kubb/core": "^3.10.15",
42-
"@kubb/plugin-oas": "^3.10.15",
43-
"@kubb/plugin-zod": "^3.10.15",
44-
"@types/bun": "^1.2.15",
45-
"@types/node": "^20.19.0",
46-
"@typescript/native-preview": "7.0.0-dev.20250606.1",
47-
"esbuild": "^0.25.5",
48-
"husky": "^9.1.7",
49-
"openapi-types": "^12.1.3",
50-
"ts-add-js-extension": "^1.6.6",
51-
"tsx": "^4.19.4",
52-
"typescript": "^5.8.3",
53-
"yaml": "^2.8.0",
54-
"zx": "^8.5.5"
55-
}
2+
"name": "moodle-openapi-server",
3+
"version": "1.0.12",
4+
"description": "Moddle OpenAPI server",
5+
"private": true,
6+
"type": "module",
7+
"bin": {
8+
"moodle-openapi-server": "./dist/index.js"
9+
},
10+
"files": [
11+
"dist"
12+
],
13+
"scripts": {
14+
"build": "tsgo && ts-add-js-extension --dir=dist && cp package.json dist/package.json",
15+
"bundle": "bun build src/server.ts --outfile=dist/server.bundle.js",
16+
"build:binary": "bun build src/server.ts --compile --outfile=dist/server",
17+
"build:docker": "docker build --build-arg GITHUB_TOKEN=${GITHUB_TOKEN} -t moodle-openapi-server .",
18+
"typecheck": "tsgo --noEmit",
19+
"test": "bun test",
20+
"dev": "bun --watch src/server.ts",
21+
"dev:mcp": "bun --watch src/index.ts",
22+
"dev:all": "concurrently \"pnpm dev\" \"pnpm dev:mcp\"",
23+
"start:all": "concurrently \"bun dist/src/server.js\" \"bun dist/src/index.js\"",
24+
"start": "bun dist/server.bundle.js",
25+
"inspect": "fastmcp inspect src/index.ts",
26+
"prepare": "husky"
27+
},
28+
"dependencies": {
29+
"@dotenvx/dotenvx": "^1.48.3",
30+
"@microsoft/microsoft-graph-client": "^3.0.7",
31+
"@toptiertools/moodle-client": "^1.0.13",
32+
"@total-typescript/ts-reset": "^0.6.1",
33+
"concurrently": "^8.2.2",
34+
"es-toolkit": "^1.39.7",
35+
"fastmcp": "^1.27.7",
36+
"hono": "^4.8.5",
37+
"zod": "^3.25.76"
38+
},
39+
"devDependencies": {
40+
"@biomejs/biome": "^1.9.4",
41+
"@types/bun": "^1.2.19",
42+
"@types/node": "^20.19.9",
43+
"@typescript/native-preview": "7.0.0-dev.20250606.1",
44+
"esbuild": "^0.25.8",
45+
"husky": "^9.1.7",
46+
"openapi-types": "^12.1.3",
47+
"ts-add-js-extension": "^1.6.6",
48+
"tsx": "^4.20.3",
49+
"typescript": "^5.8.3",
50+
"yaml": "^2.8.0",
51+
"zx": "^8.7.1"
52+
}
5653
}

0 commit comments

Comments
 (0)