Skip to content

Commit f41abf0

Browse files
committed
update packages to type:module, simplified with only main fields (no need for exports unless multiple paths need configuring, or CommonJS support is needed, but we're no longer explicitly supporting CommonJS modules, and CommonJS users can use the import() function to import the lib, and they can even use the deasync package if they really really want the import to be "synchronous", so there's really no need to hold onto the past and we can make moving forward as simple and standards-based as possible)
1 parent f5b9a52 commit f41abf0

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

packages/amazon-sumerian-hosts-babylon/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "2.0.6",
44
"description": "",
55
"license": "MIT",
6+
"type": "module",
67
"author": {
78
"name": "Amazon Web Services",
89
"url": "https://aws.amazon.com",
@@ -13,10 +14,6 @@
1314
"url": "https://github.com/aws-samples/amazon-sumerian-hosts.git"
1415
},
1516
"main": "./src/Babylon.js/index.js",
16-
"exports": {
17-
"import": "./src/Babylon.js/index.js",
18-
"require": "./dist/host.babylon.js"
19-
},
2017
"types": "./dist/src/Babylon.js/index.d.ts",
2118
"scripts": {
2219
},

packages/amazon-sumerian-hosts-core/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "2.0.6",
44
"description": "",
55
"license": "MIT",
6+
"type": "module",
67
"author": {
78
"name": "Amazon Web Services",
89
"url": "https://aws.amazon.com",
@@ -13,10 +14,6 @@
1314
"url": "https://github.com/aws-samples/amazon-sumerian-hosts.git"
1415
},
1516
"main": "./src/core/index.js",
16-
"exports": {
17-
"import": "./src/core/index.js",
18-
"require": "./dist/host.core.js"
19-
},
2017
"scripts": {
2118
"lint": "eslint .",
2219
"docs": "jsdoc -c jsdoc.conf.json"

packages/amazon-sumerian-hosts-three/package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"version": "2.0.6",
44
"description": "",
55
"license": "MIT",
6+
"type": "module",
67
"author": {
78
"name": "Amazon Web Services",
89
"url": "https://aws.amazon.com",
@@ -13,10 +14,6 @@
1314
"url": "https://github.com/aws-samples/amazon-sumerian-hosts.git"
1415
},
1516
"main": "./src/three.js/index.js",
16-
"exports": {
17-
"import": "./src/three.js/index.js",
18-
"require": "./dist/host.three.js"
19-
},
2017
"scripts": {
2118
},
2219
"dependencies": {

0 commit comments

Comments
 (0)