mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 22:05:44 +01:00
chore(build-docs): fix wrong mkdir
This commit is contained in:
@@ -26,7 +26,7 @@ export default function buildSwagger({ baseDir, gitRootDir }: BuildContext) {
|
|||||||
for (const { specPath, outDir } of buildInfos) {
|
for (const { specPath, outDir } of buildInfos) {
|
||||||
const absSpecPath = join(gitRootDir, specPath);
|
const absSpecPath = join(gitRootDir, specPath);
|
||||||
const targetDir = join(baseDir, outDir);
|
const targetDir = join(baseDir, outDir);
|
||||||
mkdirSync(outDir, { recursive: true });
|
mkdirSync(targetDir, { recursive: true });
|
||||||
execSync(`pnpm redocly build-docs ${absSpecPath} -o ${targetDir}/index.html`, { stdio: "inherit" });
|
execSync(`pnpm redocly build-docs ${absSpecPath} -o ${targetDir}/index.html`, { stdio: "inherit" });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user