@makefully/platypus 4.1.4 → 4.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@makefully/platypus",
3
- "version": "4.1.4",
3
+ "version": "4.1.5",
4
4
  "description": "2D tile-based HTML5 game engine with a component-based entity model",
5
5
  "license": "MIT",
6
6
  "contributors": [
@@ -8,8 +8,12 @@
8
8
  "Todd Lewis <todd.lewis@gopherwoodstudios.com> (https://github.com/GopherwoodTodd)"
9
9
  ],
10
10
  "main": "lib/platypus.js",
11
+ "module": "lib/platypus.mjs",
11
12
  "exports": {
12
- ".": "./lib/platypus.js",
13
+ ".": {
14
+ "import": "./lib/platypus.mjs",
15
+ "require": "./lib/platypus.js"
16
+ },
13
17
  "./platypus.css": "./lib/platypus.css",
14
18
  "./package.json": "./package.json"
15
19
  },
@@ -43,8 +47,8 @@
43
47
  ],
44
48
  "scripts": {
45
49
  "start": "webpack serve --mode development",
46
- "build:release": "webpack --mode production",
47
- "build:debug": "webpack --mode development",
50
+ "build:release": "node scripts/clean-lib.mjs && webpack --mode production",
51
+ "build:debug": "node scripts/clean-lib.mjs && webpack --mode development",
48
52
  "prepack": "npm run build:release",
49
53
  "pack:check": "npm pack --dry-run",
50
54
  "test:watch": "vitest",