diff --git a/scripts/buildSpecs.ts b/scripts/buildSpecs.ts index 846d80174a..b2928a7fea 100644 --- a/scripts/buildSpecs.ts +++ b/scripts/buildSpecs.ts @@ -96,7 +96,7 @@ async function transformBundle({ if (withDoc) { const docFolderPath = toAbsolutePath('website/specs'); if (!(await exists(docFolderPath))) { - fsp.mkdir(docFolderPath); + fsp.mkdir(docFolderPath, { recursive: true }); } const pathToSpecDoc = `${docFolderPath}/${clientName}.doc.yml`;