2025-11-01 22:42:27 +02:00
|
|
|
import { execSync } from "child_process";
|
|
|
|
|
import BuildContext from "./context";
|
2025-11-01 22:54:42 +02:00
|
|
|
import { join } from "path";
|
2025-11-01 22:42:27 +02:00
|
|
|
|
2025-11-01 22:54:42 +02:00
|
|
|
export default function buildScriptApi({ baseDir }: BuildContext) {
|
2025-11-01 22:51:33 +02:00
|
|
|
for (const config of [ "backend", "frontend" ]) {
|
2025-11-01 22:54:42 +02:00
|
|
|
const outDir = join(baseDir, "script-api", config);
|
|
|
|
|
execSync(`pnpm typedoc --options typedoc.${config}.json --html "${outDir}"`, {
|
2025-11-01 22:51:33 +02:00
|
|
|
stdio: "inherit"
|
|
|
|
|
});
|
|
|
|
|
}
|
2025-11-01 22:42:27 +02:00
|
|
|
}
|