From 0acf8b931dcac31aedae4173fc11e97ae16a67ab Mon Sep 17 00:00:00 2001 From: Yue JIN <40021217+kingyue737@users.noreply.github.com> Date: Thu, 15 Aug 2024 13:00:11 +0800 Subject: [PATCH] chore: add pkg.exports --- package.json | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/package.json b/package.json index 36260e0..dfd8681 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,18 @@ { "name": "expr-eval", "version": "2.0.2", + "type": "commonjs", "description": "Mathematical expression evaluator", "main": "dist/bundle.js", "module": "dist/index.mjs", "typings": "parser.d.ts", + "exports": { + ".": { + "types": "./parser.d.ts", + "import": "./dist/index.mjs", + "require": "./dist/bundle.js" + } + }, "directories": { "test": "test" },