From 32e19f399d9e0afaaf70aade1c7dde2a3de78699 Mon Sep 17 00:00:00 2001 From: kouloumos Date: Tue, 27 Jun 2023 15:14:44 +0300 Subject: [PATCH] fix: add typings to package.json export fixes the issue of not be able to load definition files when using `moduleResolution: "bundler"` via Vite --- packages/ndk-react/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/ndk-react/package.json b/packages/ndk-react/package.json index 71e81f1..7630147 100644 --- a/packages/ndk-react/package.json +++ b/packages/ndk-react/package.json @@ -13,7 +13,8 @@ "exports": { ".": { "import": "./dist/ndk-react.es.js", - "require": "./dist/ndk-react.umd.js" + "require": "./dist/ndk-react.umd.js", + "types": "./dist/index.d.ts" } }, "main": "./dist/ndk-react.umd.js",