aboutsummaryrefslogtreecommitdiff
path: root/lang/node-homebridge/patches
diff options
context:
space:
mode:
authorHirokazu MORIKAWA <morikw2@gmail.com>2020-08-27 08:11:59 +0900
committerHirokazu MORIKAWA <morikw2@gmail.com>2020-08-27 08:15:58 +0900
commite1406bba5acd8b0a00232b55492d0ba3694446c6 (patch)
tree60a98d4ceaf09bfb7bbaa538a08e90115565733d /lang/node-homebridge/patches
parent0294be7c985fac98cbf1cd033a65dcf9ca8ee22f (diff)
node-homebridge: update to 1.1.2
update to 1.1.2 Add opkg package path to the homebrodge plugin module path. Signed-off-by: Hirokazu MORIKAWA <morikw2@gmail.com>
Diffstat (limited to 'lang/node-homebridge/patches')
-rw-r--r--lang/node-homebridge/patches/000-add_module_search_path.patch10
1 files changed, 10 insertions, 0 deletions
diff --git a/lang/node-homebridge/patches/000-add_module_search_path.patch b/lang/node-homebridge/patches/000-add_module_search_path.patch
new file mode 100644
index 000000000..265503627
--- /dev/null
+++ b/lang/node-homebridge/patches/000-add_module_search_path.patch
@@ -0,0 +1,10 @@
+--- a/lib/pluginManager.js
++++ b/lib/pluginManager.js
+@@ -308,6 +308,7 @@
+ else {
+ this.searchPaths.add("/usr/local/lib/node_modules");
+ this.searchPaths.add("/usr/lib/node_modules");
++ this.searchPaths.add("/usr/lib/node");
+ this.searchPaths.add(child_process_1.execSync("/bin/echo -n \"$(npm --no-update-notifier -g prefix)/lib/node_modules\"").toString("utf8"));
+ }
+ }