From 9457cce58eb9589844d5681b1b27fc620b8d8a84 Mon Sep 17 00:00:00 2001 From: Anand Chowdhary Date: Sat, 16 Dec 2023 20:06:36 +0100 Subject: [PATCH] :bug: Copy assets during site script --- src/site.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/site.ts b/src/site.ts index 8c25ba10..b2fdb364 100644 --- a/src/site.ts +++ b/src/site.ts @@ -13,11 +13,11 @@ export const generateSite = async () => { const octokit = await getOctokit(); const repoDetails = await octokit.repos.get({ owner, repo }); const siteDir = "site"; - + /* Configure shelljs to fail on failure */ - var sh = require('shelljs'); + var sh = require("shelljs"); sh.config.fatal = true; - + mkdir(siteDir); cd(siteDir); /** @@ -38,5 +38,6 @@ export const generateSite = async () => { exec("npm run export"); mkdir("-p", "status-page/__sapper__/export"); cp("-r", "__sapper__/export/*", "status-page/__sapper__/export"); + cp("-r", "../assets/*", "status-page/__sapper__/export"); cd("../.."); };