Skip to content

fix: export PreviewBanner.astro from package exports map - #5

Merged
clord merged 1 commit into
mainfrom
fix/preview-banner-export
Jul 26, 2026
Merged

clord merged 1 commit into
mainfrom
fix/preview-banner-export

Conversation

@clord

@clord clord commented Jul 26, 2026

Copy link
Copy Markdown
Member

Problem

@pliosoft/sites-sdk@0.2.1 shipped the PreviewBanner component in src/ (added in #4) but never added it to the package exports map. Deep imports of @pliosoft/sites-sdk/components/PreviewBanner.astro therefore fail to resolve.

The current sites-template imports PreviewBanner in src/layouts/Base.astro, so every customer site generated from the template fails to build in the sites-app deploy pipeline:

[commonjs--resolver] Missing "./components/PreviewBanner.astro" specifier in "@pliosoft/sites-sdk" package

First observed on beaver-hills-press (new customer, site 404s because the deploy never succeeds).

Fix

  • Add ./components/PreviewBanner.astro to exports (the build script already copies it into dist/)
  • Bump to 0.2.2

After merge, tag v0.2.2 to trigger the npm publish workflow, then rebuild affected customer sites.

🤖 Generated with Claude Code

The PreviewBanner component shipped in src/ but was never added to the
exports map, so deep imports of
@pliosoft/sites-sdk/components/PreviewBanner.astro fail to resolve.
This breaks the build of every customer site generated from the current
sites-template (which imports it in Base.astro).

Bump to 0.2.2 for a patch release.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@clord
clord merged commit 40742fa into main Jul 26, 2026
1 check passed
@clord
clord deleted the fix/preview-banner-export branch July 26, 2026 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant