From 2fc6ff8010e684abeb6bfa4e417a323716b1e4b6 Mon Sep 17 00:00:00 2001 From: Nick Farina Date: Wed, 8 Jul 2015 08:33:55 -0700 Subject: [PATCH] Don't hide providers in node_modules --- README.md | 4 ++-- lib/homebridge/provider.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c3ba1eb..a9f85e3 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,10 @@ Providers must be published to npm and tagged with `homebridge-provider`. The pa Providers are automatically discovered and loaded from your home directory inside the `.homebridge` folder. For instance, the Lockitron provider would be placed here: ```sh -~/.homebridge/providers/node_modules/homebridge-lockitron +~/.homebridge/providers/homebridge-lockitron ``` -Right now you must copy providers manually (or symlink them from another location). The HomeBridge server will load and validate your Provider on startup. You can find an example Provider stub in [example-providers/homebridge-lockitron](). +Right now you must copy providers manually (or symlink them from another location). The HomeBridge server will load and validate your Provider on startup. You can find an example Provider in [example-providers/homebridge-lockitron](). ## Running from Source diff --git a/lib/homebridge/provider.js b/lib/homebridge/provider.js index 371f939..22f5d42 100644 --- a/lib/homebridge/provider.js +++ b/lib/homebridge/provider.js @@ -84,6 +84,6 @@ export class Provider { } static get installedProvidersDir():string { - return path.join(Provider.userDir, ".homebridge/providers/node_modules"); + return path.join(Provider.userDir, ".homebridge/providers"); } }