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 2020/08/05 02:05:26 UTC
[incubator-annotator] 11/12: Add conditional exports
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 06141b027ebcf5d38daed95d61c759e1711a5fb2
Author: Randall Leeds <ra...@apache.org>
AuthorDate: Tue Aug 4 19:04:33 2020 -0700
Add conditional exports
---
packages/dom/package.json | 5 +++++
packages/selector/package.json | 5 +++++
2 files changed, 10 insertions(+)
diff --git a/packages/dom/package.json b/packages/dom/package.json
index 6be8a72..498460a 100644
--- a/packages/dom/package.json
+++ b/packages/dom/package.json
@@ -9,6 +9,11 @@
},
"license": "Apache-2.0",
"author": "Apache Software Foundation",
+ "type": "module",
+ "exports": {
+ "import": "./esm/index.js",
+ "require": "./lib/index.js"
+ },
"main": "./lib/index.js",
"module": "./esm/index.js",
"types": "./src/types.d.ts",
diff --git a/packages/selector/package.json b/packages/selector/package.json
index eb6aaa4..80902cd 100644
--- a/packages/selector/package.json
+++ b/packages/selector/package.json
@@ -9,6 +9,11 @@
},
"license": "Apache-2.0",
"author": "Apache Software Foundation",
+ "type": "module",
+ "exports": {
+ "import": "./esm/index.js",
+ "require": "./lib/index.js"
+ },
"main": "./lib/index.js",
"module": "./esm/index.js",
"types": "./src/index.d.ts",