Skip to content

fix(build): emit relative paths in published type declarations#102

Merged
Bccorb merged 1 commit into
mainfrom
fix/dts-path-aliases
Jul 20, 2026
Merged

fix(build): emit relative paths in published type declarations#102
Bccorb merged 1 commit into
mainfrom
fix/dts-path-aliases

Conversation

@Bccorb

@Bccorb Bccorb commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

The declaration build kept the @/* tsconfig path aliases in the generated
.d.ts files, and nothing rewrote them to relative paths. No consumer can resolve
@/*, so every downstream project saw the SDK's public surface as any, masked
by the common skipLibCheck default. Add a tsc-alias post-build step (and the
rootDir it needs) so the emitted declarations use relative imports. Verified
the packed tarball's .d.ts is alias-free and the existing 222 tests still pass.

The declaration build kept the `@/*` tsconfig path aliases in the generated
.d.ts files, and nothing rewrote them to relative paths. No consumer can resolve
`@/*`, so every downstream project saw the SDK's public surface as `any`, masked
by the common `skipLibCheck` default. Add a tsc-alias post-build step (and the
`rootDir` it needs) so the emitted declarations use relative imports. Verified
the packed tarball's .d.ts is alias-free and the existing 222 tests still pass.
@Bccorb
Bccorb merged commit 41ebb86 into main Jul 20, 2026
2 of 3 checks passed
@Bccorb
Bccorb deleted the fix/dts-path-aliases branch July 20, 2026 19:04
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