From b81d6823dda81b9ec78edb04a2d8fe99f1b84aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carl-Gerhard=20Lindesva=CC=88rd?= Date: Wed, 15 Nov 2023 09:39:17 +0100 Subject: [PATCH] add exports fields to published packages --- tooling/publish/publish.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tooling/publish/publish.ts b/tooling/publish/publish.ts index e47f0153..058353f5 100644 --- a/tooling/publish/publish.ts +++ b/tooling/publish/publish.ts @@ -43,6 +43,10 @@ function main() { module: './dist/index.mjs', types: './dist/index.d.ts', files: ['dist'], + exports: { + import: './dist/index.js', + require: './dist/index.cjs', + }, }; try {