Files
Trilium/apps/build-docs/src/swagger.ts

11 lines
377 B
TypeScript
Raw Normal View History

2025-11-01 20:03:53 +02:00
import { getAbsoluteFSPath } from "swagger-ui-dist";
import BuildContext from "./context";
import { cpSync, mkdirSync } from "fs";
import { join } from "path";
export default function buildSwagger({ baseDir }: BuildContext) {
const absolutePath = getAbsoluteFSPath();
const targetDir = join(baseDir, "api");
cpSync(absolutePath, targetDir, { recursive: true });
}