Skip to content

fix(spec-sdk-tests): remove vestigial @hookdeck/outpost-sdk alias#971

Merged
alexluong merged 1 commit into
mainfrom
fix/928-spec-sdk-tests-vestigial-alias
Jun 23, 2026
Merged

fix(spec-sdk-tests): remove vestigial @hookdeck/outpost-sdk alias#971
alexluong merged 1 commit into
mainfrom
fix/928-spec-sdk-tests-vestigial-alias

Conversation

@alexluong

Copy link
Copy Markdown
Collaborator

Closes #928.

What

Removes the @hookdeck/outpost-sdk package alias from spec-sdk-tests:

  • package.json — the file:../../../sdks/outpost-typescript dependency
  • tsconfig.json — the matching paths entries and the SDK include

Why

The alias paths pointed ../../../ (three levels up), resolving outside the repo — wrong since the suite was first added. It never surfaced because the alias was never imported anywhere; every test, util, and factory imports the SDK via direct relative path (../../sdks/outpost-typescript/dist/commonjs). npm install didn't fail because modern npm doesn't verify file: targets at install time.

Chose option 2 from the issue (remove the alias) over option 1 (fix the paths): it matches how the suite actually wires the SDK today, and is a zero-risk deletion of dead config. Switching the suite to package-name imports (option 1) would be a larger change worth its own issue.

Verification

Run against a live local Outpost stack (make up):

  • npm install — clean (no longer references the bad file: path)
  • npm run type-check (tsc --noEmit) — clean (removed alias/include weren't needed)
  • npm test153 passing, 15 pending

🤖 Generated with Claude Code

The `file:` dep and tsconfig `paths`/`include` for `@hookdeck/outpost-sdk`
pointed three levels up (`../../../sdks/...`), resolving outside the repo —
wrong since the suite was created. The alias was never imported anywhere;
every test uses direct relative paths to `dist/commonjs`. Drop the dead,
misleading config to match how the tests actually wire the SDK.

Closes #928

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@alexluong alexluong merged commit fb508fa into main Jun 23, 2026
3 of 4 checks passed
@alexluong alexluong deleted the fix/928-spec-sdk-tests-vestigial-alias branch June 23, 2026 18:28
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.

fix(spec-sdk-tests): @hookdeck/outpost-sdk file: path and tsconfig paths are wrong (vestigial)

2 participants