Skip to content

Commit 61613ae

Browse files
committedDec 8, 2022
fix: Set type in package as module, fix test.
1 parent fc7cff8 commit 61613ae

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"description": "",
55
"author": "vantreeseba <vantreeseba@gmail.com>",
66
"repository": "github:dropecho/storygen",
7-
"main": "./dist/js/cjs/index.cjs",
87
"publishConfig": {
98
"access": "public"
109
},
@@ -26,6 +25,8 @@
2625
"semantic-release": "^19.0.5",
2726
"semantic-release-haxelib": "^1.1.0"
2827
},
28+
"type": "module",
29+
"main": "./dist/js/cjs/index.cjs",
2930
"exports": {
3031
".": {
3132
"require": "./dist/js/cjs/index.cjs",

‎test.hxml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
-D dce=no
2929

3030
-lib hxnodejs
31-
-js build/js_test.js
31+
-js build/js_test.cjs
3232
# --next
3333

3434
# ## HashLink

0 commit comments

Comments
 (0)