From 5a782ba777000baee62a0c8be90726d1e30db881 Mon Sep 17 00:00:00 2001 From: Joel Kuzmarski Date: Mon, 10 Apr 2017 10:14:48 -0500 Subject: [PATCH] only do git submodule update once --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c1ff6fb..27d5d30 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "genc": "bit-docs -dc", "genf": "bit-docs -df", "gh-pages": "gh-pages -d gh-pages", - "postinstall": "git submodule update --init", + "preinstall": "[ -f docs/modules/bit-docs/package.json ] || git submodule update --init", "pub": "npm run gh-pages", "see": "http-server gh-pages", "test": "echo \"Error: no test specified\" && exit 1"