mirror of
https://github.com/mtan93/homebridge.git
synced 2026-03-08 05:31:55 +00:00
Don't hide providers in node_modules
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user