From 413ae4db2f260425df6fb4e8e8b42f8924a0c2e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=A6n=20Hansen?= Date: Sat, 24 May 2025 08:28:24 +0200 Subject: [PATCH 1/2] Update exports --- packages/polygen/package.json | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/packages/polygen/package.json b/packages/polygen/package.json index 31c2f3f..d547180 100644 --- a/packages/polygen/package.json +++ b/packages/polygen/package.json @@ -8,18 +8,9 @@ "react-native": "", "bin": "cli.mjs", "exports": { - ".": { - "types": "./dist/index.d.ts", - "require": "./dist/index.js" - }, - "./polyfill": { - "types": "./dist/polyfill.d.ts", - "require": "./dist/polyfill.js" - }, - "./config": { - "types": "./dist/config.d.ts", - "require": "./dist/config.js" - }, + ".": "./dist/index.js", + "./polyfill": "./dist/polyfill.js", + "./config": "./dist/config.js", "./package.json": "./package.json" }, "files": [ From 28eebfb6771713fce9b71e415defb5986f8c4965 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=A6n=20Hansen?= Date: Sat, 24 May 2025 08:28:40 +0200 Subject: [PATCH 2/2] Make "type" explicit --- packages/polygen/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/polygen/package.json b/packages/polygen/package.json index d547180..f187947 100644 --- a/packages/polygen/package.json +++ b/packages/polygen/package.json @@ -7,6 +7,7 @@ "types": "./dist/index.d.ts", "react-native": "", "bin": "cli.mjs", + "type": "commonjs", "exports": { ".": "./dist/index.js", "./polyfill": "./dist/polyfill.js",