From 44e51a0ed5edda5fdfc404162953d316e6576e0f Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Mon, 27 Mar 2017 16:59:59 -0700 Subject: [PATCH] [client-app] only re-install for optional deps on mac --- scripts/postinstall.es6 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/postinstall.es6 b/scripts/postinstall.es6 index b34b58bc6..7c514bfc2 100644 --- a/scripts/postinstall.es6 +++ b/scripts/postinstall.es6 @@ -155,8 +155,10 @@ async function main() { // `client-app` so `node-mac-notifier` get's correctly installed and // included in the build See // https://github.com/lerna/lerna/issues/121 - console.log("\n---> Reinstalling client-app dependencies to include optional dependencies"); - await npm('install', {cwd: 'packages/client-app'}) + if (process.platform === "darwin") { + console.log("\n---> Reinstalling client-app dependencies to include optional dependencies"); + await npm('install', {cwd: 'packages/client-app'}) + } await electronRebuild(); linkJasmineConfigs(); linkIsomorphicCoreSpecs();