mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
Export HomeBridge as global API
This commit is contained in:
@@ -12,5 +12,8 @@ var path = require('path');
|
||||
var fs = require('fs');
|
||||
var lib = path.join(path.dirname(fs.realpathSync(__filename)), '../lib');
|
||||
|
||||
// Export HomeBridge as a global for providers
|
||||
global.homebridge = require(lib + '/homebridge');
|
||||
|
||||
// Run the HomeBridge CLI
|
||||
require(lib + '/homebridge').cli();
|
||||
homebridge.cli();
|
||||
|
||||
Reference in New Issue
Block a user