From f558b7580506bc740425f0862f2fa14ce677c8de Mon Sep 17 00:00:00 2001 From: Jaakko Hirvioja <98736266+jhirvioja@users.noreply.github.com> Date: Wed, 3 May 2023 21:58:47 +0300 Subject: [PATCH] Add types to package.json exports mapping (#444) * Add types to package.json exports mapping * Move types to be first in package.json exports --------- Co-authored-by: Ryan Christian <33403762+rschristian@users.noreply.github.com> --- package.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/package.json b/package.json index 2033051..aa19172 100644 --- a/package.json +++ b/package.json @@ -10,12 +10,14 @@ "unpkg": "dist/preact-router.umd.js", "exports": { ".": { + "types": "./index.d.ts", "module": "./dist/preact-router.mjs", "import": "./dist/preact-router.mjs", "require": "./dist/preact-router.js" }, "./package.json": "./package.json", "./match": { + "types": "./match/index.d.ts", "module": "./match/index.mjs", "import": "./match/index.mjs", "require": "./match/index.js"