From aadcb486a9159f79f2a58ae94ffa8e52a956fdd6 Mon Sep 17 00:00:00 2001 From: Konnor Rogers Date: Tue, 13 Jun 2023 12:30:32 -0400 Subject: [PATCH] fix broken build (#1370) * fix broken build * prettier --- scripts/build.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build.js b/scripts/build.js index 3e1470ca2..362ae51f6 100644 --- a/scripts/build.js +++ b/scripts/build.js @@ -10,6 +10,7 @@ import fs from 'fs/promises'; import getPort, { portNumbers } from 'get-port'; import ora from 'ora'; import util from 'util'; +import * as path from 'path'; const { serve } = commandLineArgs([{ name: 'serve', type: Boolean }]); const outdir = 'dist'; @@ -212,7 +213,7 @@ await nextTask(`Copying the build to "${sitedir}"`, async () => { await deleteAsync(sitedir); // We copy the CDN build because that has everything bundled. - await copy(cdndir, sitedir); + await copy(cdndir, path.join(sitedir, 'cdn')); }); // Launch the dev server