Skip to content

Commit

Permalink
fix: carousel no-update-body-if on postpublish
Browse files Browse the repository at this point in the history
agliga committed Dec 28, 2023

Verified

This commit was signed with the committer’s verified signature.
agliga Andrew Gliga
1 parent ecca2b7 commit 13b581a
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/prepublish.js
Original file line number Diff line number Diff line change
@@ -14,6 +14,9 @@ execSync("mtc");
execSync(
"find dist -type f -name 'component*.js' | xargs sed -i '' 's/exports.default =/module.exports =/g'",
);
execSync(
"sed -i '' 's/no-update-body-if=!!config.preserveItems/no-update-body-if(!!config.preserveItems)/g' dist/components/ebay-carousel/index.marko",
);

// create top level browser.json files to map to nested ones
fs.readdirSync(componentInputDir)
1 change: 1 addition & 0 deletions src/components/ebay-carousel/index.marko
Original file line number Diff line number Diff line change
@@ -58,6 +58,7 @@ $ var config = data.config;
class=item.class
style=item.style
aria-hidden=!item.fullyVisible && 'true'
no-update-body-if=!!config.preserveItems
>
<${item.renderBody}/>
</li>

0 comments on commit 13b581a

Please sign in to comment.