From 49a14babb9c1889f30af08abd9227a432b26e59c Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Fri, 13 Dec 2024 03:07:46 +0900 Subject: [PATCH 1/2] feat: esm first (support cjs by exports field of package.json) --- packages/package.json | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/packages/package.json b/packages/package.json index d2b319d..2c725c4 100644 --- a/packages/package.json +++ b/packages/package.json @@ -19,21 +19,22 @@ "email": "been.im@toss.im" }, "sideEffects": false, - "main": "./dist/index.js", - "module": "./dist/index.mjs", - "types": "./dist/index.d.ts", + "type": "module", + "main": "dist/index.cjs", + "module": "dist/index.js", + "types": "dist/index.d.ts", "files": [ "dist" ], "exports": { ".": { "import": { - "types": "./dist/index.d.mts", - "default": "./dist/index.mjs" - }, - "require": { "types": "./dist/index.d.ts", "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" } }, "./package.json": "./package.json" From 1705c55e47c3cf33bdf7c045d98954f0228a791d Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Fri, 13 Dec 2024 03:11:11 +0900 Subject: [PATCH 2/2] Create spicy-carrots-attack.md --- .changeset/spicy-carrots-attack.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/spicy-carrots-attack.md diff --git a/.changeset/spicy-carrots-attack.md b/.changeset/spicy-carrots-attack.md new file mode 100644 index 0000000..5785721 --- /dev/null +++ b/.changeset/spicy-carrots-attack.md @@ -0,0 +1,5 @@ +--- +"overlay-kit": patch +--- + +feat: esm first (support cjs by exports field of package.json)