You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ra...@apache.org on 2019/05/09 10:32:08 UTC
[incubator-annotator] 04/04: Add a module field to package.json
files
This is an automated email from the ASF dual-hosted git repository.
randall pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit ba85d68feb7ca64630221479ec014d5d709f54de
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Thu May 9 03:31:36 2019 -0700
Add a module field to package.json files
---
packages/dom/package.json | 3 ++-
packages/fragment-identifier/package.json | 3 ++-
packages/range/package.json | 3 ++-
packages/selector/package.json | 3 ++-
4 files changed, 8 insertions(+), 4 deletions(-)
diff --git a/packages/dom/package.json b/packages/dom/package.json
index 6f8ee32..9c137fa 100644
--- a/packages/dom/package.json
+++ b/packages/dom/package.json
@@ -9,7 +9,8 @@
},
"license": "Apache-2.0",
"author": "Apache Software Foundation",
- "main": "lib",
+ "main": "lib/index.js",
+ "module": "esm/index.js",
"dependencies": {
"@babel/runtime-corejs3": "^7.4.0",
"core-js": "3",
diff --git a/packages/fragment-identifier/package.json b/packages/fragment-identifier/package.json
index 5477207..02e415d 100644
--- a/packages/fragment-identifier/package.json
+++ b/packages/fragment-identifier/package.json
@@ -9,7 +9,8 @@
},
"license": "Apache-2.0",
"author": "Apache Software Foundation",
- "main": "lib",
+ "main": "lib/index.js",
+ "module": "esm/index.js",
"scripts": {
"prepare": "pegjs --format es --output src/fragment.js src/fragment.pegjs"
},
diff --git a/packages/range/package.json b/packages/range/package.json
index 923c71b..60115f5 100644
--- a/packages/range/package.json
+++ b/packages/range/package.json
@@ -9,7 +9,8 @@
},
"license": "Apache-2.0",
"author": "Apache Software Foundation",
- "main": "lib",
+ "main": "lib/index.js",
+ "module": "esm/index.js",
"dependencies": {
"@babel/runtime-corejs3": "^7.4.0",
"cartesian": "^1.0.1",
diff --git a/packages/selector/package.json b/packages/selector/package.json
index c13c977..e3c8095 100644
--- a/packages/selector/package.json
+++ b/packages/selector/package.json
@@ -9,7 +9,8 @@
},
"license": "Apache-2.0",
"author": "Apache Software Foundation",
- "main": "lib",
+ "main": "lib/index.js",
+ "module": "esm/index.js",
"dependencies": {
"@babel/runtime-corejs3": "^7.4.0",
"core-js": "3"