From 8b469014a7ca6031f8bae1c650746cef3bffbc1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Bostro=CC=88m?= Date: Tue, 1 Oct 2024 00:37:54 +0300 Subject: [PATCH] fix(build): also use object notation for root export --- package.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index f6da25c..ceacd92 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,10 @@ "dist" ], "exports": { - ".": "./dist/index.js", + ".": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, "./extensions/fileWriter": { "types": "./dist/extensions/fileWriter.d.ts", "default": "./dist/extensions/fileWriter.js"