From c23736d549220ba7a2698f9147ca8efc5f416327 Mon Sep 17 00:00:00 2001 From: Steven Than Date: Tue, 1 Nov 2022 13:14:52 -0700 Subject: [PATCH] feat: convert to using exports field --- package.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/package.json b/package.json index 5f7eecb23..8b0192d96 100644 --- a/package.json +++ b/package.json @@ -12,6 +12,17 @@ "main": "lib/index.js", "module": "esm/index.js", "types": "esm/index.d.ts", + "exports": { + ".": { + "require": "./lib/index.js", + "default": "./esm/index.js" + } + }, + "typesVersions": { + "*": { + "*": ["./esm/index.d.ts"] + } + }, "sideEffects": false, "files": [ "lib",