From cd55fc970412ed5843bb545a334425b841cf9c73 Mon Sep 17 00:00:00 2001 From: Simon Ihmig Date: Fri, 10 Nov 2023 16:06:23 +0100 Subject: [PATCH] Support index-modules in exports --- files/__addonLocation__/package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/files/__addonLocation__/package.json b/files/__addonLocation__/package.json index e0b72747..0680c6e1 100644 --- a/files/__addonLocation__/package.json +++ b/files/__addonLocation__/package.json @@ -102,8 +102,8 @@ "default": "./dist/index.js" }, "./*": { - "types": "./declarations/*.d.ts", - "default": "./dist/*.js" + "types": ["./declarations/*.d.ts", "./declarations/*/index.d.ts"], + "default": ["./dist/*.js", "./dist/*/index.js"] },<% } else { %> ".": "./dist/index.js", "./*": "./dist/*.js",<% } %> @@ -112,7 +112,8 @@ "typesVersions": { "*": { "*": [ - "declarations/*" + "declarations/*", + "declarations/*/index" ] } }<% } %>