Fix build condition

On the server the env var is defined but set to false.
This commit is contained in:
Karim Hamidou 2017-03-21 16:52:30 -07:00
parent b849793a72
commit 1f9c5120cd

View file

@ -58,7 +58,7 @@ async function lernaBootstrap() {
let lernaCmd = "lerna"
if (process.platform === "win32") { lernaCmd = "lerna.cmd" }
const args = ["bootstrap"]
if (process.env.ONLY_CLIENT) {
if (process.env.ONLY_CLIENT === 'true') {
args.push("--ignore='cloud-*'")
}
await spawn(path.join('node_modules', '.bin', lernaCmd), ["bootstrap"])