From 0397d1b5b5507eebcad7e13084acffdd921cd8d2 Mon Sep 17 00:00:00 2001 From: Eric Bower <me@erock.io> Date: Thu, 13 Jan 2022 23:09:59 -0500 Subject: [PATCH] exports in package json --- package.json | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/package.json b/package.json index 33823a9..4f02abf 100644 --- a/package.json +++ b/package.json @@ -15,6 +15,16 @@ "build": "tsc", "prepublish": "yarn build" }, + "exports": { + ".": { + "types": "./dist/index.d.ts", + "module": "./dist/index.js" + }, + "./react": { + "types": "./dist/react.d.ts", + "module": "./dist/react.js" + } + }, "devDependencies": { "@types/node": "^15.3.0", "ava": "^3.15.0",