Skip to content

Commit

Permalink
Fixed issue where ui assets wouldn't be properly packaged
Browse files Browse the repository at this point in the history
  • Loading branch information
dgreene-r7 authored Jul 18, 2023
1 parent 7fb0899 commit 8769ed2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions forge.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,9 @@ const exec = util.promisify(require('node:child_process').exec);
const { globSync } = require('glob');
const awsaml = require('./package.json');

const includeFiles = [
let includeFiles = [
// we need to make sure the project root directory is included
'',
...globSync('build/**'),
...globSync('src/**'),
'LICENSE.md',
'package.json',
Expand Down Expand Up @@ -59,6 +58,11 @@ const config = {
}

await exec('yarn react-build');
// Update the files we want to include with generated build artifacts
includeFiles = [
...includeFiles,
...globSync('build/**'),
];
},
prePackage: () => {
// Clear the out directory if it exists
Expand Down

0 comments on commit 8769ed2

Please sign in to comment.