mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
fix: build issues
This commit is contained in:
@@ -9,5 +9,5 @@ await Bun.build({
|
||||
identifiers: true,
|
||||
syntax: true,
|
||||
},
|
||||
external: [],
|
||||
external: ["ssh2"],
|
||||
});
|
||||
|
||||
@@ -5,7 +5,8 @@
|
||||
"dev": "bun run --watch src/index.ts",
|
||||
"build": "rm -rf dist && bun build.ts",
|
||||
"tsc": "tsc --noEmit",
|
||||
"gen:migrations": "drizzle-kit generate"
|
||||
"gen:migrations": "drizzle-kit generate",
|
||||
"studio": "drizzle-kit studio"
|
||||
},
|
||||
"dependencies": {
|
||||
"@hono/arktype-validator": "^2.0.1",
|
||||
@@ -15,7 +16,7 @@
|
||||
"arktype": "^2.1.20",
|
||||
"dockerode": "^4.0.8",
|
||||
"dotenv": "^17.2.1",
|
||||
"drizzle-orm": "^0.44.4",
|
||||
"drizzle-orm": "^0.44.6",
|
||||
"hono": "^4.9.2",
|
||||
"hono-openapi": "^1.1.0",
|
||||
"http-errors-enhanced": "^3.0.2",
|
||||
@@ -24,8 +25,9 @@
|
||||
"winston": "^3.17.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@libsql/client": "^0.15.15",
|
||||
"@types/bun": "^1.2.20",
|
||||
"@types/dockerode": "^3.3.44",
|
||||
"drizzle-kit": "^0.31.4"
|
||||
"drizzle-kit": "^0.31.5"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,14 +34,14 @@ export const scalarDescriptor = Scalar({
|
||||
const driver = new Hono().use(honoLogger()).route("/", driverController);
|
||||
const app = new Hono()
|
||||
.use(honoLogger())
|
||||
.get("*", serveStatic({ root: "./assets/frontend" }))
|
||||
.get("healthcheck", (c) => c.json({ status: "ok" }))
|
||||
.basePath("/api/v1")
|
||||
.route("/auth", authController)
|
||||
.route("/volumes", volumeController.use(requireAuth));
|
||||
.route("/api/v1/auth", authController.basePath("/api/v1"))
|
||||
.route("/api/v1/volumes", volumeController.use(requireAuth))
|
||||
.get("/assets/*", serveStatic({ root: "./assets/frontend" }))
|
||||
.get("*", serveStatic({ path: "./assets/frontend/index.html" }));
|
||||
|
||||
app.get("/openapi.json", generalDescriptor(app));
|
||||
app.get("/docs", scalarDescriptor);
|
||||
app.get("/api/v1/openapi.json", generalDescriptor(app));
|
||||
app.get("/api/v1/docs", scalarDescriptor);
|
||||
|
||||
app.onError((err, c) => {
|
||||
logger.error(`${c.req.url}: ${err.message}`);
|
||||
|
||||
Reference in New Issue
Block a user