Skip to content

fix: ship @chkit/clickhouse/e2e-testkit from dist, not unshipped src#146

Merged
alvarogar4 merged 1 commit into
mainfrom
alvaro/num-7276-package-manifest-hygiene
Jun 11, 2026
Merged

fix: ship @chkit/clickhouse/e2e-testkit from dist, not unshipped src#146
alvarogar4 merged 1 commit into
mainfrom
alvaro/num-7276-package-manifest-hygiene

Conversation

@alvarogar4

@alvarogar4 alvarogar4 commented Jun 10, 2026

Copy link
Copy Markdown
Member

Summary

Fixes the broken @chkit/clickhouse/e2e-testkit published export (#28). Scoped down from the original three-finding PR after CI surfaced that one of them was load-bearing.

Test plan

  • bun run typecheck with all dist/ wiped (CI's exact condition) — passes via source resolution.
  • turbo run build lint test green; plugin-backfill exports test passes.
  • @chkit/clickhouse/e2e-testkit resolves to dist/e2e-testkit.js under Node (require.resolve) and Bun.
  • patch changeset for @chkit/clickhouse.

🤖 Generated with Claude Code

#28 — the `/e2e-testkit` subpath export pointed at `./src/e2e-testkit.ts`
under both conditions, but `files: ["dist"]` excludes src, so importing
`@chkit/clickhouse/e2e-testkit` from the published package was a hard
module-not-found. Build it to dist (drop the tsconfig exclude) and point
the export at dist, keeping a `source` condition for in-repo type resolution.

#27 (codegen hard-pinning @chkit/core) was already resolved upstream:
codegen now declares `@chkit/core: workspace:*`.

#42 (dropping the `source` export condition) was investigated and dropped:
the repo relies on `source` so `tsc` can type-check sibling packages from
source without a build (the `typecheck` task depends on `^typecheck`, not
`^build`), and a plugin-backfill test asserts its presence. Removing it
broke CI. Correctly handling #42 needs publish-time stripping — deferred.

Verified: typecheck passes with no dist present (CI's condition); full
build/lint/test green; e2e-testkit resolves to dist under Node and Bun.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@alvarogar4 alvarogar4 force-pushed the alvaro/num-7276-package-manifest-hygiene branch from c3584b0 to dccbacb Compare June 10, 2026 11:39
@alvarogar4 alvarogar4 changed the title fix: correct published package exports (drop source condition, ship e2e-testkit) fix: ship @chkit/clickhouse/e2e-testkit from dist, not unshipped src Jun 10, 2026
@alvarogar4 alvarogar4 merged commit 17b8a27 into main Jun 11, 2026
6 checks passed
@alvarogar4 alvarogar4 deleted the alvaro/num-7276-package-manifest-hygiene branch June 11, 2026 08:49
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