From f2e6da9c339b9b4b862d9070188f4b0ba07baf45 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 8 Aug 2023 10:44:06 -0300 Subject: write: static-build: ensure output directory exists first of all --- src/write/build-modes/static-build.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/write') diff --git a/src/write/build-modes/static-build.js b/src/write/build-modes/static-build.js index 8fb60cdd..60614c29 100644 --- a/src/write/build-modes/static-build.js +++ b/src/write/build-modes/static-build.js @@ -154,6 +154,8 @@ export async function go({ const writeAll = empty(selectedPageFlags) || selectedPageFlags.includes('all'); logInfo`Writing site pages: ${writeAll ? 'all' : selectedPageFlags.join(', ')}`; + await mkdir(outputPath, {recursive: true}); + await writeSymlinks({ srcRootPath, mediaPath, -- cgit 1.3.0-6-gf8a5