From 70c3766f97e418c4aa3bd755320c95952f65bc04 Mon Sep 17 00:00:00 2001 From: Laura K <6276139+alula@users.noreply.github.com> Date: Thu, 27 Jul 2023 02:59:02 +0200 Subject: [PATCH] Fix import errors while using TypeScript+ESM --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 122d5ff..f47f0e6 100644 --- a/package.json +++ b/package.json @@ -44,15 +44,19 @@ }, "exports": { ".": { + "types": "./types/cborg.d.ts", "import": "./cborg.js" }, "./length": { + "types": "./types/lib/cborg.d.ts", "import": "./lib/length.js" }, "./taglib": { + "types": "./types/taglib.d.ts", "import": "./taglib.js" }, "./json": { + "types": "./types/lib/json/json.d.ts", "import": "./lib/json/json.js" } },