Skip to content

fix: publish TypeScript declarations at the package paths declared in… - #129

Merged
bassim-matar merged 1 commit into
mainfrom
wip-20260712-225604
Jul 12, 2026
Merged

bassim-matar merged 1 commit into
mainfrom
wip-20260712-225604

Conversation

@bassim-matar

Copy link
Copy Markdown
Member

… package.json again, using a dedicated tsconfig.build.json, and fail the build when the declared types file is missing (0.12.5)

The vite-plugin-dts 5.0.2 update (#122) broke the interplay between the plugin include option and its entry-root inference: declarations landed under dist/src/ while package.json points at dist/Jsonjsdb.d.ts, so jsonjsdb 0.12.3 and 0.12.4 resolve as untyped in consuming projects. A dedicated tsconfig.build.json with an explicit rootDir makes the output layout deterministic, and a postbuild check now fails CI and release builds if the declared types file is ever missing again.

… `package.json` again, using a dedicated `tsconfig.build.json`, and fail the build when the declared types file is missing (0.12.5)

The vite-plugin-dts 5.0.2 update (#122) broke the interplay between the
plugin `include` option and its entry-root inference: declarations
landed under `dist/src/` while `package.json` points at
`dist/Jsonjsdb.d.ts`, so jsonjsdb 0.12.3 and 0.12.4 resolve as untyped
in consuming projects. A dedicated `tsconfig.build.json` with an
explicit `rootDir` makes the output layout deterministic, and a
`postbuild` check now fails CI and release builds if the declared
types file is ever missing again.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@bassim-matar
bassim-matar merged commit 3d6444d into main Jul 12, 2026
6 checks passed
@bassim-matar
bassim-matar deleted the wip-20260712-225604 branch July 12, 2026 21:42
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