From 380d8c2d961ae9edcef1ba2351910934e9f05696 Mon Sep 17 00:00:00 2001 From: Tristan Menzel Date: Fri, 26 May 2023 12:30:36 -0700 Subject: [PATCH] Adds typeVersions to package.json so imports that don't target the root index.js file still have correct typings. --- package.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/package.json b/package.json index 2e24779be..0be1d868b 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,19 @@ "crypto": false }, "types": "dist/types/index.d.ts", + "typesVersions": { + "*": { + ".": [ + "dist/types/index.d.ts" + ], + "dist/cjs/*": [ + "dist/types/*" + ], + "dist/esm/*": [ + "dist/types/*" + ] + } + }, "files": [ "dist/", "src/"