fix: named esm import

This commit is contained in:
Dmitriy Pleshevskiy 2022-11-17 16:26:46 +03:00
parent 37331a4869
commit 5f13b22150
Signed by: pleshevskiy
GPG key ID: 1B59187B161C0215

View file

@ -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"
}
}
}