mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 12:55:55 +01:00
11 lines
377 B
TypeScript
11 lines
377 B
TypeScript
|
|
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 });
|
||
|
|
}
|