Skip to content

Commit

Permalink
feat: add partials json in build (#323)
Browse files Browse the repository at this point in the history
Co-authored-by: Sander <[email protected]>
  • Loading branch information
SanderVanRiessen and Sander authored Jul 7, 2022
1 parent 5d1537f commit e05d5e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bb-components-publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,14 @@ void (async (): Promise<void> => {
await checkUpdateAvailableCLI();
const files = ['prefabs.json', 'templates.json', 'interactions.json'];
const existingPath = await pathExists(`${distDir}/pagePrefabs.json`);
const existingPartialPath = await pathExists(`${distDir}/partials.json`);

if (existingPath) {
files.push('pagePrefabs.json');
}
if (existingPartialPath) {
files.push('partials.json');
}
const [{ url }] = await Promise.all(files.map(publish));

console.log(
Expand Down

0 comments on commit e05d5e8

Please sign in to comment.