From 961ae29dbac900e017e95056ecfebfc1cc479aa5 Mon Sep 17 00:00:00 2001 From: Laur Ivan Date: Sun, 13 Mar 2022 22:30:14 +0100 Subject: [PATCH] Attempt to make things cleaner on import. --- package.json | 2 +- src/index.ts | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 870472f..8fae240 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "dptlib", - "version": "1.0.0", + "version": "0.1.0", "description": "KNX DPT library", "main": "lib/index.js", "publishConfig": { diff --git a/src/index.ts b/src/index.ts index 69e95e3..90187ed 100644 --- a/src/index.ts +++ b/src/index.ts @@ -51,7 +51,6 @@ export const DPTS: { [index: string]: DPT } = { DPT19: new DPT19(), DPT20: new DPT20(), DPT21: new DPT21(), - //DPT22: new DPT22(), DPT232: new DPT232(), DPT237: new DPT237(), @@ -75,4 +74,8 @@ export class DataPointType { return dpt; }; -} \ No newline at end of file +} + +exports.definitions = require('./definitions') +exports.DataPointType = require('./DataPointType') +exports.errors = require('./errors') \ No newline at end of file