Skip to content

Commit e5bf2b3

Browse files
committed
v0.7.1 — exports.import → TS source (Plan 49)
1 parent c00cf34 commit e5bf2b3

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,17 @@
22

33
## [Unreleased]
44

5+
## [0.7.1] - 2026-04-28
6+
7+
### Changed — `package.json.exports.import` now points at TS source (Plan 49)
8+
- `exports[.].import` switched from `./js/index.js` (compiled JS) to `./ts/index.ts` (TS source).
9+
- Added wildcard subpath export `./js/*` (was already `./ts/*`) for completeness.
10+
- `default` export still points at `./js/index.js` for non-Vite/CJS consumers.
11+
12+
**Why.** Vite resolves the `import` condition in dev mode. With `import` pointing at compiled JS, live edits to `ts/*.ts` weren't reflected in npm-linked consumers without rebuilding hds-lib-js. Pointing `import` at TS source enables true live cross-repo development. This also avoids the duplicate-singleton bug surfaced by Plan 45 (a downstream lib's pre-built bundle inlining a second copy of `hds-lib`'s `HDSModel`). Production builds and CJS consumers are unaffected (still hit `default`).
13+
14+
Brings `hds-lib` in line with `_claude-memory/conventions.md § Package exports: TS source for bundlers`. See `_plans/49-local-dev-dependency-graph-study/PLAN.md` for the full rationale.
15+
516
## [0.7.0] - 2026-04-27
617

718
### Added — itemLabels (per-form label overrides) module

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hds-lib",
3-
"version": "0.7.0",
3+
"version": "0.7.1",
44
"description": "Health Data Safe - Library",
55
"type": "module",
66
"engines": {
@@ -29,10 +29,11 @@
2929
"exports": {
3030
".": {
3131
"types": "./js/index.d.ts",
32-
"import": "./js/index.js",
32+
"import": "./ts/index.ts",
3333
"default": "./js/index.js"
3434
},
35-
"./ts/*": "./ts/*"
35+
"./ts/*": "./ts/*",
36+
"./js/*": "./js/*"
3637
},
3738
"keywords": [
3839
"HDS",

0 commit comments

Comments
 (0)