From e52ffc1cc0c7897c5bb3d29cf284684a8fcaee7f Mon Sep 17 00:00:00 2001 From: Lucas Garron Date: Fri, 1 Sep 2023 03:20:47 -0700 Subject: [PATCH] [package.json] Add `"exports"` field. --- package.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package.json b/package.json index b2b3b8a..26ed724 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,12 @@ "type": "module", "types": "dist/types/index.d.ts", "module": "dist/esm/index.js", + "exports": { + ".": { + "import": "./dist/esm/index.js", + "types": "./dist/types/index.d.ts" + } + }, "repository": "github:cubing/scramble-display", "scripts": { "build": "npm run build-types && npm run build-esm && npm run build-bundle-global",