Creating index.ts file for NPM installation and code cleanup
This commit is contained in:
parent
de59b18fba
commit
7710c68f6d
11
index.ts
Normal file
11
index.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import { BoostMoveHub } from "./boostmovehub";
|
||||
import * as Consts from "./consts";
|
||||
import { DuploTrainBase } from "./duplotrainbase";
|
||||
import { Hub } from "./hub";
|
||||
import { PoweredUP } from "./poweredup";
|
||||
import { PUPHub } from "./puphub";
|
||||
import { PUPRemote } from "./pupremote";
|
||||
import { WeDo2SmartHub } from "./wedo2smarthub";
|
||||
|
||||
export default PoweredUP;
|
||||
export { Hub, WeDo2SmartHub, BoostMoveHub, PUPHub, PUPRemote, DuploTrainBase, Consts };
|
345
package-lock.json
generated
345
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,10 +1,10 @@
|
||||
{
|
||||
"name": "node-poweredup",
|
||||
"version": "1.1.6",
|
||||
"version": "1.1.7",
|
||||
"description": "A Node.js module to interface with LEGO Powered UP components.",
|
||||
"homepage": "https://github.com/nathankellenicki/node-poweredup/",
|
||||
"main": "dist/poweredup.js",
|
||||
"types": "dist/poweredup.d.ts",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
"scripts": {
|
||||
"build": "tslint -c tslint.json \"*.ts\" && tsc",
|
||||
"docs": "jsdoc2md dist/poweredup.js dist/lpf2hub.js dist/wedo2smarthub.js dist/boostmovehub.js dist/puphub.js dist/pupremote.js dist/duplotrainbase.js dist/hub.js dist/consts.js > DOCS.md",
|
||||
|
@ -16,7 +16,6 @@ import { EventEmitter } from "events";
|
||||
import Debug = require("debug");
|
||||
const debug = Debug("PoweredUP");
|
||||
import noble = require("noble-mac");
|
||||
import { start } from "repl";
|
||||
|
||||
let ready = false;
|
||||
let wantScan = false;
|
||||
@ -153,6 +152,3 @@ export class PoweredUP extends EventEmitter {
|
||||
|
||||
|
||||
}
|
||||
|
||||
export default PoweredUP;
|
||||
export { Hub, WeDo2SmartHub, BoostMoveHub, PUPHub, PUPRemote, Consts };
|
||||
|
Loading…
x
Reference in New Issue
Block a user