From 5f13b221507c4c015ade042ffbba98ddc14b1e52 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Thu, 17 Nov 2022 16:26:46 +0300 Subject: [PATCH] fix: named esm import --- package.json | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 14025b6..03a5d99 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "it-fsm", - "version": "2.0.2", + "version": "2.0.3", "description": "Simple finite state machine for nodejs", "readme": "README.md", "scripts": { @@ -40,5 +40,11 @@ }, "type": "module", "sideEffects": false, - "files": ["dist"] + "files": ["dist"], + "exports": { + ".": { + "require": "./dist/cjs/fsm.js", + "import": "./dist/esm/fsm.js" + } + } }