Skip to content

Commit b75f0da

Browse files
zeevdrclaude
andauthored
fix(exports): add ./package.json subpath and document ESM-only (#75)
Stays ESM-only (Node ≥20 already the floor, dual CJS would add build complexity for no alpha benefit). Adds the missing ./package.json subpath export (fixes typedoc and some bundlers) and a "default" fallback condition on the main entry. Documents the ESM requirement clearly in the README. Closes #49 Co-authored-by: Claude <noreply@anthropic.com>
1 parent a1ef0e5 commit b75f0da

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ TypeScript SDK for [OpenDecree](https://github.com/opendecree/decree) -- schema-
1212

1313
> **Alpha** -- This SDK is under active development. APIs and behavior may change without notice between versions.
1414
15+
## Requirements
16+
17+
- Node.js **≥ 20** (ESM-only package — CommonJS is not supported)
18+
1519
## Install
1620

1721
```bash

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@
88
"exports": {
99
".": {
1010
"types": "./dist/index.d.ts",
11-
"import": "./dist/index.js"
12-
}
11+
"import": "./dist/index.js",
12+
"default": "./dist/index.js"
13+
},
14+
"./package.json": "./package.json"
1315
},
1416
"files": [
1517
"dist",

0 commit comments

Comments
 (0)