Skip to content

fix(build): restrict PlatformIO package export to source#969

Merged
mairas merged 1 commit into
SignalK:mainfrom
mairas:fix/pkg-export-exclude-docs
Jun 3, 2026
Merged

fix(build): restrict PlatformIO package export to source#969
mairas merged 1 commit into
SignalK:mainfrom
mairas:fix/pkg-export-exclude-docs

Conversation

@mairas

@mairas mairas commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Problem

The 3.4.0 release failed to publish to the PlatformIO registry:

HTTPClientError: File size exceeds your limit: 50 MB

library.json had no export filter, so pio package publish bundled the entire worktree — frontend/ (node_modules, ~25k files), frontend-plugins/, managed_components/, and the generated docs/ — for a 54MB+ tarball. pio package pack ignores .gitignore, so excludes alone don't reliably contain it.

Fix

Add an export.include allowlist so only the library source and manifests are packaged:

  • src, examples, library.json, library.properties, README.md, LICENSE, CHANGELOG.md

The embedded web UI is already compiled into src/sensesp/net/web/autogen/frontend_files.h, so the frontend/ source isn't needed in the package. Local pio package pack drops from 103MB to 5.8MB.

This is folded into the v3.4.0 release (the tag will be re-cut to include it).

🤖 Generated with Claude Code

Without an export filter, `pio package publish` bundled the whole
worktree (frontend/ node_modules, managed_components/, generated
docs/), producing a 54MB+ tarball that exceeds the registry's 50MB
limit. Restrict the export to the library source and manifests, which
brings the package to ~6MB.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mairas mairas merged commit 62c901d into SignalK:main Jun 3, 2026
13 of 33 checks passed
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