From 5a3eead8e5819ff2f9bff121f92b9aef55a79d08 Mon Sep 17 00:00:00 2001 From: Sean Fridman Date: Sat, 12 Dec 2015 18:48:26 +0100 Subject: Fix bug in shameful install flow --- app/node_modules/okservices/install.sh | 1 + app/node_modules/okservices/package.json | 1 + install.sh | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100755 app/node_modules/okservices/install.sh diff --git a/app/node_modules/okservices/install.sh b/app/node_modules/okservices/install.sh new file mode 100755 index 0000000..5ffd898 --- /dev/null +++ b/app/node_modules/okservices/install.sh @@ -0,0 +1 @@ +for i in ok* ; do cd $i ; npm install; cd .. ; done ; cd ../.. diff --git a/app/node_modules/okservices/package.json b/app/node_modules/okservices/package.json index 2669a49..6231499 100644 --- a/app/node_modules/okservices/package.json +++ b/app/node_modules/okservices/package.json @@ -4,6 +4,7 @@ "description": "providing very good services", "main": "index.js", "scripts": { + "postinstall": "./install.sh", "test": "echo \"Error: no test specified\" && exit 1" }, "author": "OKFocus" diff --git a/install.sh b/install.sh index 80ef53f..41e51dc 100755 --- a/install.sh +++ b/install.sh @@ -1 +1 @@ -cd app/node_modules ; for i in * ; do cd $i ; npm install; cd .. ; done ; cd ../.. +cd app/node_modules ; for i in ok* ; do cd $i ; npm install; cd .. ; done ; cd ../.. -- cgit v1.2.3-70-g09d2