Skip to content

ci: build CLI via turbo to resolve workspace deps#28

Merged
amondnet merged 1 commit into
mainfrom
fix/release-build-workspace-deps
Apr 8, 2026
Merged

ci: build CLI via turbo to resolve workspace deps#28
amondnet merged 1 commit into
mainfrom
fix/release-build-workspace-deps

Conversation

@amondnet

@amondnet amondnet commented Apr 8, 2026

Copy link
Copy Markdown
Contributor

Summary

tsc in packages/cli fails with TS2307: Cannot find module '@pleaseai/registry-schema' during the release workflow.

Root Cause

The release workflow's Build CLI step ran bun run --cwd packages/cli build, which only builds the CLI. The workspace dependency @pleaseai/registry-schema has exports pointing to ./dist/*, but its dist/ is never produced — so tsc in the CLI cannot resolve the type declarations.

Changes

  • Switch release workflow to bun run build --filter=@pleaseai/ask, delegating to root turbo build which respects the workspace dependency graph and builds @pleaseai/registry-schema before the CLI.

Test Plan

  • Release workflow passes the Build CLI step on merge to main

Summary by cubic

Build the CLI via Turbo in the release workflow to respect workspace deps and prevent TS2307 errors. This ensures @pleaseai/registry-schema is built before the CLI.

  • Bug Fixes
    • Replace bun run --cwd packages/cli build with bun run build --filter=@pleaseai/ask so @pleaseai/registry-schema produces dist/ before @pleaseai/ask builds.

Written for commit 49c8f7a. Summary will update on new commits.

tsc in packages/cli failed with TS2307 for @pleaseai/registry-schema
because the workflow built only the CLI, skipping the schema package
whose exports point to ./dist/*. Use turbo --filter to build the
dependency graph in order.
@codecov

codecov Bot commented Apr 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@amondnet amondnet self-assigned this Apr 8, 2026
@amondnet
amondnet merged commit ab1f514 into main Apr 8, 2026
4 of 5 checks passed
@amondnet
amondnet deleted the fix/release-build-workspace-deps branch April 8, 2026 09:02

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Requires human review: CI/CD workflow changes are considered high-impact and require human review to ensure they do not disrupt the release process.

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