diff --git a/package.json b/package.json index 36260e00..dfd86818 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" },