Skip to content

fix: update ci to properly handle npm workspaces#210

Open
0xAxiom wants to merge 4 commits intomainfrom
fix/ci-workspace-dependencies
Open

fix: update ci to properly handle npm workspaces#210
0xAxiom wants to merge 4 commits intomainfrom
fix/ci-workspace-dependencies

Conversation

@0xAxiom
Copy link
Owner

@0xAxiom 0xAxiom commented Mar 18, 2026

Problem

All 30 open PRs are failing CI with TypeScript compilation and test errors due to missing module dependencies:

  • @anthropic-ai/sdk
  • commander, ora, chalk, ajv, dotenv, inquirer
  • Other workspace dependencies

The issue is that the CI workflow was running individual npm ci commands in each workspace directory instead of using proper npm workspace management.

Solution

  • Use npm workspace bootstrap approach instead of individual npm ci
  • Install all dependencies from root with npm ci
  • Then run npm run bootstrap:subprojects for workspace-specific setup
  • Ensures proper dependency resolution across all workspaces

Testing

✅ Submodule path issue fixed in previous commits
✅ Local TypeScript compilation works correctly
✅ Dependencies install properly with workspace approach

This should resolve the CI failures affecting all 30 open PRs.

0xAxiom added 4 commits March 18, 2026 11:09
- Fixed high severity flatted vulnerability (unbounded recursion DoS)
- Updated vitest and coverage tools to latest stable versions
- Updated linting tools (eslint, typescript-eslint, lint-staged)
- Updated @anthropic-ai/sdk from 0.32.1 to latest for CLI
- Updated other CLI dependencies (commander, dotenv, inquirer, ora)
- All security vulnerabilities resolved
- Remove base-whale-watch from git submodules tracking
- Add directory as regular files to fix CI submodule errors
- Resolves submodule path not found error in .gitmodules
- Add .gitkeep to maintain directory structure
- Complete submodule cleanup for CI stability
- use npm workspace bootstrap instead of individual npm ci commands
- ensures proper dependency resolution across all workspaces
- fixes typescript compilation and test module resolution errors
- uses bootstrap:subprojects script for proper workspace setup

this resolves the 'cannot find module' errors in ci for:
- @anthropic-ai/sdk
- commander, ora, chalk, ajv, dotenv, inquirer
- other workspace dependencies
@0xAxiom 0xAxiom requested a review from MeltedMindz as a code owner March 18, 2026 19:25
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