From 5c1643ffe44d0edbb56cd9af12478efd08f3dd9f Mon Sep 17 00:00:00 2001 From: Franklin Strube Date: Wed, 20 Jul 2022 12:52:06 -0400 Subject: [PATCH] Add package.json to exports so that version information is available to other packages. Fixes #287 --- package.json | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index ac401825..7c73536b 100644 --- a/package.json +++ b/package.json @@ -29,12 +29,15 @@ "module": "dist/browser-module.mjs", "source": "src/index.js", "exports": { - "node": { - "import": "./dist/module.mjs", - "require": "./dist/main.cjs" + ".": { + "node": { + "import": "./dist/module.mjs", + "require": "./dist/main.cjs" + }, + "import": "./dist/browser-module.mjs", + "require": "./dist/browser.cjs" }, - "import": "./dist/browser-module.mjs", - "require": "./dist/browser.cjs" + "./package.json": "./package.json" }, "targets": { "main": {