mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 22:00:33 +08:00
chore(build-docs): generate types for doc
This commit is contained in:
parent
68c6260e45
commit
4f5be54030
1 changed files with 4 additions and 1 deletions
|
|
@ -2,7 +2,10 @@ import { execSync } from "child_process";
|
|||
import BuildContext from "./context";
|
||||
import { join } from "path";
|
||||
|
||||
export default function buildScriptApi({ baseDir }: BuildContext) {
|
||||
export default function buildScriptApi({ baseDir, gitRootDir }: BuildContext) {
|
||||
// Generate types
|
||||
execSync(`pnpm typecheck`, { stdio: "inherit", cwd: gitRootDir });
|
||||
|
||||
for (const config of [ "backend", "frontend" ]) {
|
||||
const outDir = join(baseDir, "script-api", config);
|
||||
execSync(`pnpm typedoc --options typedoc.${config}.json --html "${outDir}"`, {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue