From d79cdf5ecf70d25598c91b226e889e0efee8d4a8 Mon Sep 17 00:00:00 2001 From: Stalgia Grigg Date: Thu, 29 Feb 2024 14:32:32 -0800 Subject: [PATCH] Ensure yuiDocOutputPath exists --- src/scripts/parsers/reference.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scripts/parsers/reference.ts b/src/scripts/parsers/reference.ts index c2d9766816..51f04bba9b 100644 --- a/src/scripts/parsers/reference.ts +++ b/src/scripts/parsers/reference.ts @@ -44,6 +44,7 @@ const getYuidocOutput = async (): Promise => { export const saveYuidocOutput = async () => { console.log("Running YUIDoc command and capturing output..."); try { + await mkdir(yuidocOutputPath, { recursive: true }); await new Promise((resolve, reject) => { exec(`yuidoc -p --outdir ${yuidocOutputPath}`, (error, stdout) => { if (error) {