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" ] } }<% } %>