@jgphilpott/polytree 0.1.4 → 0.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,11 +1,12 @@
1
1
  {
2
2
  "name": "@jgphilpott/polytree",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "description": "A modern, high-performance spatial querying library designed specifically for three.js and Node.",
5
5
  "funding": "https://github.com/sponsors/jgphilpott",
6
6
  "main": "polytree.bundle.js",
7
7
  "exports": {
8
8
  ".": {
9
+ "import": "./polytree.bundle.browser.esm.js",
9
10
  "require": "./polytree.bundle.js"
10
11
  }
11
12
  },
@@ -15,7 +16,8 @@
15
16
  "polytree.bundle.js",
16
17
  "polytree.bundle.min.js",
17
18
  "polytree.bundle.browser.js",
18
- "polytree.bundle.browser.min.js"
19
+ "polytree.bundle.browser.min.js",
20
+ "polytree.bundle.browser.esm.js"
19
21
  ],
20
22
  "directories": {
21
23
  "example": "examples"
@@ -25,9 +27,10 @@
25
27
  "pretest": "npm run build",
26
28
  "compile": "coffee -cb .",
27
29
  "compile:watch": "coffee -cbw . &",
28
- "build": "npm run compile && npm run build:node && npm run build:browser && npm run minify",
30
+ "build": "npm run compile && npm run build:node && npm run build:browser && npm run build:browser:esm && npm run minify",
29
31
  "build:node": "./scripts/bundle.sh",
30
32
  "build:browser": "node scripts/browserify.cjs",
33
+ "build:browser:esm": "esbuild polytree.bundle.browser.js --bundle --platform=browser --format=esm --outfile=polytree.bundle.browser.esm.js --external:three",
31
34
  "minify": "npm run minify:node && npm run minify:browser",
32
35
  "minify:node": "uglifyjs polytree.bundle.js -cmo polytree.bundle.min.js",
33
36
  "minify:browser": "uglifyjs polytree.bundle.browser.js -cmo polytree.bundle.browser.min.js",
@@ -43,12 +46,14 @@
43
46
  "license": "MIT",
44
47
  "bugs": { "url": "https://github.com/jgphilpott/polytree/issues" },
45
48
  "homepage": "https://github.com/jgphilpott/polytree#readme",
49
+ "module": "polytree.bundle.browser.esm.js",
46
50
  "devDependencies": {
47
51
  "coffeescript": "^2.7.0",
48
52
  "jest": "^30.2.0",
49
- "uglify-js": "^3.19.3"
53
+ "uglify-js": "^3.19.3",
54
+ "esbuild": "^0.27.1"
50
55
  },
51
56
  "dependencies": {
52
- "three": "^0.181.1"
57
+ "three": "^0.182.0"
53
58
  }
54
59
  }