Skip to content

fix: build full workspace before publishing - #5

Merged
MD4 merged 1 commit into
masterfrom
fix/publish-build-workspace-deps
Jun 11, 2026
Merged

fix: build full workspace before publishing#5
MD4 merged 1 commit into
masterfrom
fix/publish-build-workspace-deps

Conversation

@MD4

@MD4 MD4 commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #4. After #4, OIDC publishing worked — @screeb/sdk-browser@0.6.1 and @screeb/react-native@3.3.1 published successfully. But sdk-react, sdk-angular, and sdk-vue failed at the build step:

RollupError: [plugin typescript] TS2307: Cannot find module '@screeb/sdk-browser' or its corresponding type declarations.

Those three depend on the workspace package @screeb/sdk-browser, whose dist/type declarations must exist at build time. The publish step built only the target workspace (npm run build --workspace=...), so the dependency was never built. (browser has no internal dep; react-native doesn't import sdk-browser types — both built fine.)

Fix: build the whole workspace with npm run build (topological via lerna, identical to ci.yml) so dependencies are built before the target package. Applied to all 5 JS publish workflows for consistency.

After merge

Re-trigger the 3 remaining tags (@screeb/sdk-react@0.7.1, @screeb/sdk-angular@0.6.1, @screeb/sdk-vue@0.2.1) by re-pointing them to merged master and pushing individually. (sdk-browser and react-native are already on npm — leave them.)

Packages sdk-react/sdk-angular/sdk-vue depend on the workspace package
@screeb/sdk-browser, whose dist/types must exist at build time. Building
only the target workspace (npm run build --workspace=...) fails to resolve
@screeb/sdk-browser. Build the whole workspace (npm run build, topological
via lerna, same as CI) so dependencies are built first.
@MD4
MD4 merged commit 6b61915 into master Jun 11, 2026
2 of 3 checks passed
@MD4
MD4 deleted the fix/publish-build-workspace-deps branch June 11, 2026 11:27
Alexays pushed a commit that referenced this pull request Jul 9, 2026
fix: build full workspace before publishing
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