From 74c898103962056a373253af6158cafe55e21b52 Mon Sep 17 00:00:00 2001 From: liamcottle Date: Thu, 13 Feb 2025 00:18:25 +1300 Subject: [PATCH] export classes --- package.json | 2 +- src/index.js | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/index.js diff --git a/package.json b/package.json index 3ce5a94..9f27a68 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@liamcottle/meshcore.js", "version": "0.0.1", "description": "", - "main": "device.js", + "main": "src/index.js", "type": "module", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..33989e7 --- /dev/null +++ b/src/index.js @@ -0,0 +1,11 @@ +import Connection from "./connection/connection.js"; +import BleConnection from "./connection/ble_connection.js"; +import SerialConnection from "./connection/serial_connection.js"; +import Constants from "./constants.js"; + +export { + Connection, + BleConnection, + SerialConnection, + Constants, +};