From 5e876f99bc4ef40293fa344ef8b573b5fa3476bc Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Sat, 5 Jun 2021 13:49:30 +0200 Subject: [PATCH] Re-adding index.js for easier imports --- package.json | 1 + src/index.js | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 src/index.js diff --git a/package.json b/package.json index ce545c3..324230d 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "1.2.0", "description": "Core functions, classes and components for RecogitoJS", "sideEffects": false, + "main": "src/index.js", "scripts": { "test": "NODE_ENV=test ./node_modules/.bin/mocha --require @babel/register" }, diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..a4a7d62 --- /dev/null +++ b/src/index.js @@ -0,0 +1,8 @@ +export { default as Editor } from './editor/Editor'; +export { default as I18n } from './i18n'; +export { default as WebAnnotation } from './WebAnnotation'; +export { default as Selection } from './Selection'; +export { default as createEnvironment } from './Environment'; + +export * from './Icons'; +export * from './utils'; \ No newline at end of file