Published packages that build: std's declarations type-check, strict-lib's export points at the file #145
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/release-package-build"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
verify-packagesfound two problems while cutting 0.5.0. Both were added after 0.4.0, so no released version has them, and both would have failed the release job..d.tsfailed withoutskipLibCheck. The promise checks from #121 (C extends PromiseCheck = CheckResult<T, E>) have a default that fails its constraint on purpose, under a// @ts-expect-error(TS2344). tsc drops that comment when it writes the declarations. That left ten TS2344 errors inresult.d.ts,json.d.tsandtesting.d.ts, and building safe-ts-vue against std failed.build-packagesnow adds the comment back above each of those lines, and the build fails if the count differs from the sources'. I tried a default that satisfies the constraint instead, but then a genericResult<T, E>argument no longer compiles../strict-libpointed at a missing file. It is a hand-written declaration file at the package root (#108). The exports rewrite turned it into./strict-lib.d.d.ts. Exports outsidesrc/now ship as they are.No docs change: this only changes the build script. I'm not adding a CHANGELOG entry, since neither problem was ever published.
Test:
npm run build && node scripts/verify-packages.mjs: all package checks passed (the published declarations go through tsc, and the Vite, Node loader, Bun, oxlint, CLI/LSP and skill checks run).🤖 Generated with Claude Code