Skip to content

SDK: npm install docs and a type test that can't time out - #10

Merged
heyderekj merged 1 commit into
mainfrom
claude/sdk-npm-docs
Nov 13, 2026
Merged

heyderekj merged 1 commit into
mainfrom
claude/sdk-npm-docs

Conversation

@heyderekj

Copy link
Copy Markdown
Contributor

Small follow-up to #9, ahead of publishing 0.4.0 to npm.

What changed

  • Docs: @heresmychurch/lookup is already on npm (0.2.0 and 0.3.0 were published on November 10), but the README, quickstart and React docs still said it wasn't. They now show npm install. The README is also the package's page on npm, so this should land before 0.4.0 is published.
  • Flaky test fix: test/types.test.ts ran tsc seven times with execFileSync, which blocks the test worker. On a busy machine a run could pass in total for more than 60 seconds, and Vitest then failed it with "Timeout calling onTaskUpdate" even though all 188 tests passed. The tsc runs now use async execFile.

Testing

  • The SDK tests passed five times in a row, including two runs that took over 60 seconds. Before, one of five runs failed.
  • With a deliberate type error added to the consumer file, the type test still fails as it should.

🤖 Generated with Claude Code

- The package is on npm (0.2.0 and 0.3.0 are published), so the README,
  quickstart and React docs show npm install instead of "not published".
- types.test runs tsc through async execFile. Seven blocking execFileSync
  calls could hold the test worker past Vitest's 60 s RPC timeout on a busy
  machine, failing the run with "Timeout calling onTaskUpdate" though every
  test passed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@heyderekj
heyderekj merged commit a4f3c9f into main Nov 13, 2026
1 check passed
@heyderekj
heyderekj deleted the claude/sdk-npm-docs branch November 13, 2026 04:35
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