Skip to content

fix: auto-bootstrap submodule before typecheck/test/build/check#4

Merged
code-yeongyu merged 1 commit into
mainfrom
fix/typecheck-without-bootstrap
May 18, 2026
Merged

fix: auto-bootstrap submodule before typecheck/test/build/check#4
code-yeongyu merged 1 commit into
mainfrom
fix/typecheck-without-bootstrap

Conversation

@code-yeongyu
Copy link
Copy Markdown
Owner

@code-yeongyu code-yeongyu commented May 18, 2026

Without this, a fresh checkout running npm run typecheck fails because the submodule's dist/cli.js does not exist yet.

Adds pre* lifecycle hooks (pretypecheck, pretest, prebuild, precheck) that call the bootstrap script. The bootstrap script is now idempotent (skips when dist/cli.js already exists), so the chained pre-step is effectively free on subsequent invocations.

Verified locally:

  • Fresh state: npm run typecheck auto-bootstraps submodule then succeeds
  • Cached state: second npm run typecheck is fast (no rebuild)
  • npm test runs cleanly (7 tests pass)

Summary by cubic

Automatically bootstraps the lsp-tools-mcp submodule before typecheck, test, build, and check to fix fresh-clone failures and keep repeated runs fast.

  • Bug Fixes
    • Added pretypecheck, pretest, prebuild, and precheck hooks to run the bootstrap script.
    • Made the bootstrap script idempotent; skips when packages/lsp-tools-mcp/dist/cli.js exists (use --force to rebuild).
    • Fresh clones can run npm run typecheck/test/build/check without manual steps.

Written for commit 8971c4a. Summary will update on new commits. Review in cubic

Without this, a fresh checkout running 'npm run typecheck' fails because the
submodule's dist/cli.js does not exist yet. Adds 'pre*' lifecycle hooks that
call the bootstrap script. The bootstrap script is now idempotent (skips when
dist/cli.js already exists), so the chained pre-step is effectively free on
subsequent invocations.
Copy link
Copy Markdown

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

Choose a reason for hiding this comment

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

No issues found across 2 files

Re-trigger cubic

@code-yeongyu code-yeongyu merged commit aff4961 into main May 18, 2026
8 checks passed
@code-yeongyu code-yeongyu deleted the fix/typecheck-without-bootstrap branch May 18, 2026 04:54
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