Skip to content

Commit

Permalink
chore: add conditional so we only change the first package
Browse files Browse the repository at this point in the history
  • Loading branch information
mariaozamiz committed May 29, 2024
1 parent ac34fc9 commit dc752c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,10 @@ function build(args: BuildArgs): void {

run(`react-scripts build && cp -r i18n icon.png build`);
run(`d2-manifest package.json build/manifest.webapp -t ${manifestType} -n '${variant.title}'`);
if (variant.file === "metadata-synchronization") {
updateManifestJsonFile(`build/manifest.json`, variant.title);
}
updateManifestNamespace(`build/manifest.webapp`, variant.file);
updateManifestJsonFile(`build/manifest.json`, variant.title);
run(`rm -f ${fileName}`);
run(`cd build && zip -r ../${fileName} *`);
console.info(`Written: ${fileName}`);
Expand Down

0 comments on commit dc752c1

Please sign in to comment.