You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ge...@apache.org on 2020/09/18 20:25:42 UTC

[incubator-annotator] branch top-level-exports created (now 3e4f218)

This is an automated email from the ASF dual-hosted git repository.

gerben pushed a change to branch top-level-exports
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git.


      at 3e4f218  Add "exports" to top-level package.json

This branch includes the following new commits:

     new 3e4f218  Add "exports" to top-level package.json

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-annotator] 01/01: Add "exports" to top-level package.json

Posted by ge...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

gerben pushed a commit to branch top-level-exports
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git

commit 3e4f218ae2e5f7999c25f04caee7a9fe699df2b8
Author: Gerben <ge...@treora.com>
AuthorDate: Fri Sep 18 22:24:47 2020 +0200

    Add "exports" to top-level package.json
---
 package.json | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/package.json b/package.json
index d97f19c..534e97b 100644
--- a/package.json
+++ b/package.json
@@ -31,6 +31,20 @@
     "web:build": "webpack --config=web/webpack.config.js --mode development",
     "web:server": "webpack-dev-server --config=web/webpack.config.js --hot --mode development"
   },
+  "exports": {
+    ".": {
+      "import": "./packages/apache-annotator/lib/index.mjs",
+      "require": "./packages/apache-annotator/lib/index.js"
+    },
+    "./dom": {
+      "import": "./packages/dom/lib/index.mjs",
+      "require": "./packages/dom/lib/index.js"
+    },
+    "./selector": {
+      "import": "./packages/selector/lib/index.mjs",
+      "require": "./packages/selector/lib/index.js"
+    }
+  },
   "devDependencies": {
     "@babel/cli": "^7.10.1",
     "@babel/core": "^7.10.1",