From 56e30a3c785bc89ea629f80c47fc1575c287ce4f Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Mon, 29 May 2023 16:59:46 +0200 Subject: [PATCH] feat: Add support for `moduleResolution: bundler` To allow using bacon.js with the `moduleResolution: bundler` in a `.tsconfig` we need to specify the types path as part of the `exports` object. Signed-off-by: Sebastian Martinez --- package-lock.json | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 106f4d8f..166eb1bf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "baconjs", - "version": "3.0.16", + "version": "3.0.17", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 6df2387c..a6915df9 100644 --- a/package.json +++ b/package.json @@ -93,6 +93,7 @@ "module": "./dist/Bacon.mjs", "exports": { "import": "./dist/Bacon.mjs", + "types": "./types/bacon.d.ts", "require": "./dist/Bacon.js" }, "types": "types/bacon.d.ts"