From 4ca0013ac9efd3d5e361c24a678ce4d7709bd7ab Mon Sep 17 00:00:00 2001 From: Frieder Bluemle Date: Wed, 18 Jan 2023 11:23:01 -0800 Subject: [PATCH] Move js/ to src/ and use default index.js --- index.js | 1 + package.json | 2 +- {js => src}/ElectrodeBridge.js | 0 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 index.js rename {js => src}/ElectrodeBridge.js (100%) diff --git a/index.js b/index.js new file mode 100644 index 0000000..ca47d1c --- /dev/null +++ b/index.js @@ -0,0 +1 @@ +export {electrodeBridge, DispatchMode} from './src/ElectrodeBridge'; diff --git a/package.json b/package.json index ec34ecf..4a2b7cb 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "react-native-electrode-bridge", "version": "1.5.27", "description": "Low level communication bridge between React Native js and native", - "main": "js/ElectrodeBridge.js", + "main": "index.js", "scripts": { "build": "flow check", "format": "prettier --write .", diff --git a/js/ElectrodeBridge.js b/src/ElectrodeBridge.js similarity index 100% rename from js/ElectrodeBridge.js rename to src/ElectrodeBridge.js