Skip to content

Commit 6802d8c

Browse files
authored
Merge pull request #438 from Annoraaq/bugfix/#435-mjs-cjs
#435 fix esm
2 parents 553c597 + 70474a3 commit 6802d8c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Phaser3 plugin for grid based movement on a 2D game board.",
55
"author": "Johannes Baum",
66
"license": "Apache-2.0",
7-
"main": "dist/GridEngine.esm.min.js",
7+
"main": "dist/GridEngine.min.cjs",
8+
"module": "dist/GridEngine.esm.min.js",
89
"type": "module",
910
"scripts": {
1011
"test": "jest",
@@ -37,7 +38,7 @@
3738
"files": [
3839
"dist"
3940
],
40-
"types": "dist/src/GridEngine.d.ts",
41+
"types": "dist/mjs/src/main-esm.d.ts",
4142
"dependencies": {
4243
"mnemonist": "^0.39.5",
4344
"rxjs": "^7.8.1",

0 commit comments

Comments
 (0)