Skip to content

Commit

Permalink
🐛 Copy assets during site script
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Dec 16, 2023
1 parent 19698d7 commit 9457cce
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/site.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
/**
Expand All @@ -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("../..");
};

0 comments on commit 9457cce

Please sign in to comment.