From d5fa01c6eca674dbdb53146cc44a01e714ec0cdd 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 | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 5f7eecb23..28067d8ad 100644 --- a/package.json +++ b/package.json @@ -9,9 +9,19 @@ }, "license": "MIT", "packageManager": "yarn@3.2.2", - "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",