From 24bd99abab6813c3f2bf87e3a4990fb4b794a310 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Mon, 4 Nov 2024 22:40:54 -0500 Subject: [PATCH 1/2] idea 1 --- package.json | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 08f65e8..0bfbec2 100644 --- a/package.json +++ b/package.json @@ -10,13 +10,15 @@ "type": "module", "exports": { ".": { - "browser": { - "types": "./index.d.ts", - "default": "./pkg/standalone.js" + "require": { + "node": { + "types": "./index.d.cts", + "default": "./pkg/node.cjs" + } }, "default": { - "types": "./index.d.cts", - "default": "./pkg/node.cjs" + "types": "./index.d.ts", + "default": "./pkg/standalone.js" } } }, From b942dddeb45e336090988672fabbe2d467817703 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Mon, 4 Nov 2024 22:41:34 -0500 Subject: [PATCH 2/2] idea 2 --- package.json | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 0bfbec2..e7406ce 100644 --- a/package.json +++ b/package.json @@ -10,15 +10,13 @@ "type": "module", "exports": { ".": { - "require": { - "node": { - "types": "./index.d.cts", - "default": "./pkg/node.cjs" - } - }, - "default": { + "browser": { "types": "./index.d.ts", "default": "./pkg/standalone.js" + }, + "node": { + "types": "./index.d.cts", + "default": "./pkg/node.cjs" } } },