Skip to content

ci: build hvigor-plugin before assembling the OHPM packages - #41

Merged
Fiona2016 merged 1 commit into
mainfrom
ci/publish-ohpm-build-hvigor-plugin
Sep 13, 2026
Merged

Fiona2016 merged 1 commit into
mainfrom
ci/publish-ohpm-build-hvigor-plugin

Conversation

@Fiona2016

Copy link
Copy Markdown
Collaborator

The OHPM publish job fails at "Build HAR packages" on a clean checkout:

Failed to load or execute hvigorfile.ts: Cannot find module '../hvigor-plugin/dist/index.js'

entry/hvigorfile.ts imports the in-repo symbol upload plugin from hvigor-plugin/dist, which is git-ignored build output. hvigor loads every module's hvigorfile even for --mode module builds, so none of the SDK HARs build until the plugin has been compiled. This adds a step that runs npm ci && npm run build in hvigor-plugin before the HAR loop.

Verified on a fresh checkout with the same command-line tools the job uses: without the plugin build assembleHar for flashcat_core fails with the error above; after it, all five modules (core, rum, crash, trace, axios) build and produce their .har.

🤖 Generated with Claude Code

The demo's hvigorfile imports the in-repo symbol upload plugin from its
build output, and hvigor loads every module's hvigorfile even when it
assembles a single HAR. The build output is not committed, so on a clean
checkout no module built and the publish job failed before packaging.
@Fiona2016
Fiona2016 merged commit 5ce4eec into main Sep 13, 2026
6 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