From c51eb30a75d9aed4b507b160455a4f35b29a6f1d Mon Sep 17 00:00:00 2001 From: bingtsingw <10382462+bingtsingw@users.noreply.github.com> Date: Mon, 19 Jun 2023 14:28:54 +0800 Subject: [PATCH] build: add module type and exports --- package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package.json b/package.json index ee2b857..f7bf5dd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,11 @@ { "name": "@bingtsingw-c/xstools", "version": "0.1.0", + "type": "module", + "exports": { + "import": "./dist/index.js", + "require": "./dist/index.cjs" + }, "scripts": { "build": "tsup", "clean": "rimraf dist",