From 7acb7d44ebae8af6b217ce7a88681c4c0bef1bb9 Mon Sep 17 00:00:00 2001 From: Erin Millard Date: Sat, 29 Oct 2022 10:31:48 +1000 Subject: [PATCH] Provide export map for TypeScript types --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 46a0e63..b447902 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,11 @@ "main": "artifacts/dist/index.js", "types": "artifacts/dist/index.d.ts", "exports": { - ".": "./artifacts/dist/index.js" + ".": { + "types": "./artifacts/dist/index.d.ts", + "import": "./artifacts/dist/index.js", + "default": "./artifacts/dist/index.js" + } }, "sideEffects": false, "files": [