Skip to content

Commit

Permalink
Fix bundling for monorepos (#578)
Browse files Browse the repository at this point in the history
Update index.mts
  • Loading branch information
E-boi authored Oct 21, 2023
1 parent bdff084 commit 65c440c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/index.mts
Original file line number Diff line number Diff line change
Expand Up @@ -569,13 +569,13 @@ const { argv } = yargs(hideBin(process.argv))
if (argv.all && isMonoRepo) return bundleAddons(buildPlugin, "plugins");
else {
const addon = isMonoRepo ? await selectAddon("plugins") : undefined;
bundleAddon(buildPlugin, addon?.name);
bundleAddon(buildPlugin, addon?.name, "plugins");
}
} else if (argv.addon === "theme") {
if (argv.all && isMonoRepo) return bundleAddons(buildTheme, "themes");
else {
const addon = isMonoRepo ? await selectAddon("themes") : undefined;
bundleAddon(buildTheme, addon?.name);
bundleAddon(buildTheme, addon?.name, "themes");
}
} else {
console.log("Invalid addon type.");
Expand Down

0 comments on commit 65c440c

Please sign in to comment.