From fe7398ce423f1a9bd31648a4009a2a299052d52f Mon Sep 17 00:00:00 2001 From: agney Date: Sat, 20 Dec 2025 20:32:28 +0530 Subject: [PATCH] Update package.json exports for ESM-only build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .changeset/tender-hornets-relate.md | 5 +++++ playground/package.json | 11 +++-------- 2 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 .changeset/tender-hornets-relate.md diff --git a/.changeset/tender-hornets-relate.md b/.changeset/tender-hornets-relate.md new file mode 100644 index 0000000..ceb5500 --- /dev/null +++ b/.changeset/tender-hornets-relate.md @@ -0,0 +1,5 @@ +--- +"@agney/playground": minor +--- + +Update the types and exports. The package is ESM only. Fix on latest 1.0 version diff --git a/playground/package.json b/playground/package.json index 169f4c1..defb96c 100644 --- a/playground/package.json +++ b/playground/package.json @@ -23,17 +23,12 @@ "README.md" ], "type": "module", - "main": "dist/playground.js", - "module": "dist/playground.module.js", + "main": "dist/Playground.js", "types": "dist/Playground.d.ts", - "unpkg": "dist/playground.umd.js", - "umd:main": "dist/playground.umd.js", "exports": { ".": { - "browser": "./dist/playground.module.js", - "umd": "./dist/playground.umd.js", - "import": "./dist/playground.module.js", - "require": "./dist/playground.js" + "types": "./dist/Playground.d.ts", + "import": "./dist/Playground.js" } }, "publishConfig": {