From 47ee5ba27999f1e1dc2f910a5865c16f6c406de3 Mon Sep 17 00:00:00 2001 From: kshramt Date: Mon, 24 Jul 2023 23:42:36 +0900 Subject: [PATCH] Set the `exports` field --- package.json | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package.json b/package.json index 688a6d0..8eb9957 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,13 @@ "main": "index.js", "module": "index.mjs", "typings": "index.d.ts", + "exports": { + ".": { + "import": "./index.mjs", + "require": "./index.js", + "types": "./index.d.ts" + } + }, "devDependencies": { "benchmark": "^2.1.4", "bluebird": "^3.5.5",