From 10ee587dac752700639b06f34e65bcb18b16eda1 Mon Sep 17 00:00:00 2001 From: Sergey Astapov Date: Tue, 21 Nov 2023 16:03:03 +0000 Subject: [PATCH] Update exports so TypeScript loads ambient types --- packages/ember-cookies/package.json | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/packages/ember-cookies/package.json b/packages/ember-cookies/package.json index 4d8f0e72..3e9ca003 100644 --- a/packages/ember-cookies/package.json +++ b/packages/ember-cookies/package.json @@ -10,11 +10,27 @@ "author": "", "types": "./index.d.ts", "exports": { - ".": "./dist/index.js", - "./*": "./dist/*", - "./test-support": "./dist/test-support/index.js", + ".": { + "types": "./index.d.ts", + "default": "./dist/index.js" + }, + "./*": { + "types": "./index.d.ts", + "default": "./dist/*" + }, + "./test-support": { + "types": "./index.d.ts", + "default": "./dist/test-support/index.js" + }, "./addon-main.js": "./addon-main.js" }, + "typesVersions": { + "*": { + "*": [ + "./index.d.ts" + ] + } + }, "directories": { "doc": "doc", "test": "tests"