Skip to content

Commit fe7398c

Browse files
agneymclaude
andcommitted
Update package.json exports for ESM-only build
- Remove module, unpkg, umd:main fields (no longer generating UMD/CJS) - Update main to point to dist/Playground.js - Simplify exports to types + import conditions only 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 04cc35c commit fe7398c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@agney/playground": minor
3+
---
4+
5+
Update the types and exports. The package is ESM only. Fix on latest 1.0 version

playground/package.json

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,12 @@
2323
"README.md"
2424
],
2525
"type": "module",
26-
"main": "dist/playground.js",
27-
"module": "dist/playground.module.js",
26+
"main": "dist/Playground.js",
2827
"types": "dist/Playground.d.ts",
29-
"unpkg": "dist/playground.umd.js",
30-
"umd:main": "dist/playground.umd.js",
3128
"exports": {
3229
".": {
33-
"browser": "./dist/playground.module.js",
34-
"umd": "./dist/playground.umd.js",
35-
"import": "./dist/playground.module.js",
36-
"require": "./dist/playground.js"
30+
"types": "./dist/Playground.d.ts",
31+
"import": "./dist/Playground.js"
3732
}
3833
},
3934
"publishConfig": {

0 commit comments

Comments
 (0)