From fc3dde911188c0efad698e0ab582b0ba97d85c0f Mon Sep 17 00:00:00 2001 From: Evan Morikawa Date: Tue, 7 Mar 2017 14:24:34 -0500 Subject: [PATCH] [dev] fix AppVeyor lerna bootstrap command Needs to include `.cmd` for windows lerna builds --- scripts/postinstall.es6 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/postinstall.es6 b/scripts/postinstall.es6 index d41b5c2f1..f957dc663 100644 --- a/scripts/postinstall.es6 +++ b/scripts/postinstall.es6 @@ -55,7 +55,9 @@ async function installPrivateResources() { async function lernaBootstrap() { console.log("\n---> Installing packages"); - await spawn("lerna", ["bootstrap"]) + let lernaCmd = "lerna" + if (process.platform === "win32") { lernaCmd = "lerna.cmd" } + await spawn(path.join('node_modules', '.bin', lernaCmd), ["bootstrap"]) } const npmEnvs = {