Skip to content

Commit

Permalink
shared use of commander between homebridge and the UI repo
Browse files Browse the repository at this point in the history
  • Loading branch information
bwp91 committed Apr 25, 2024
1 parent e9ba3af commit 13e234d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 19 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ All notable changes to `homebridge-config-ui-x` will be documented in this file.

- updated dependencies
- update hb/nest dependencies
- fixed shared use of `commander` between homebridge and the UI repo

### Homebridge Dependencies

Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import { fork } from 'child_process';
import { resolve } from 'path';
import { program } from 'commander';
import { Command } from 'commander';
import { satisfies } from 'semver';

let homebridge: any;
Expand All @@ -19,6 +19,7 @@ class HomebridgeConfigUi {
process.env.UIX_STORAGE_PATH = homebridge.user.storagePath();
process.env.UIX_PLUGIN_NAME = config.name || 'homebridge-config-ui-x';

const program = new Command();
program
.allowUnknownOption()
.option('-P, --plugin-path [path]', '', (p) => process.env.UIX_CUSTOM_PLUGIN_PATH = p)
Expand Down
18 changes: 9 additions & 9 deletions ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 13e234d

Please sign in to comment.