mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 05:15:59 +01:00
13 lines
428 B
TypeScript
13 lines
428 B
TypeScript
import { execSync } from "child_process";
|
|
import BuildContext from "./context";
|
|
import { join } from "path";
|
|
|
|
export default function buildScriptApi({ baseDir }: BuildContext) {
|
|
for (const config of [ "backend", "frontend" ]) {
|
|
const outDir = join(baseDir, "script-api", config);
|
|
execSync(`pnpm typedoc --options typedoc.${config}.json --html "${outDir}"`, {
|
|
stdio: "inherit"
|
|
});
|
|
}
|
|
}
|