From 5688220203a05021db8ceb1ee5e798e967c0f554 Mon Sep 17 00:00:00 2001 From: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com> Date: Sat, 29 Aug 2026 10:51:13 +0200 Subject: [PATCH] chore: ship src alongside dist, so a ts-jest consumer can compile the source MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit OrangeCat's jest config documents the trap in its own words: its ts-jest transform compiles only .ts/.tsx, so 'an ESM-only .js dependency cannot be whitelisted into working via transformIgnorePatterns alone' — the failure class that broke AOZ's Jest run inside ai-forms in v0.3. Shipping src lets such a consumer map the subpath to the TS source and compile it like local code, while every runtime consumer keeps resolving dist through the exports map, which is unchanged. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01WqKqMnHQHSmkGFfc5t7Rxn --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 8b54d2f..4be669a 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "ai-kit", - "version": "0.6.0", - "description": "One install for the AI layer of an app: which model to call, what to do when the vendor retires it, how to walk the fallback chain and know when none of it worked, how to read the three kinds of 429, a fair daily budget across users, headless AI form filling \u2014 and now the model registry (one SSOT for every callable id, with the paid/free boundary as a field) and the grounding harness (facts, contract, deterministic fabrication check).", + "version": "0.6.1", + "description": "One install for the AI layer of an app: which model to call, what to do when the vendor retires it, how to walk the fallback chain and know when none of it worked, how to read the three kinds of 429, a fair daily budget across users, headless AI form filling — and now the model registry (one SSOT for every callable id, with the paid/free boundary as a field) and the grounding harness (facts, contract, deterministic fabrication check).", "license": "MIT", "author": "Mao Nakamoto", "homepage": "https://github.com/bitbaum/ai-kit#readme", @@ -36,7 +36,8 @@ "provenance": true }, "files": [ - "dist" + "dist", + "src" ], "exports": { ".": {