From f4a34c5664ac799a2ec632323ae047a19e76cd53 Mon Sep 17 00:00:00 2001 From: Clark Du Date: Wed, 21 Mar 2018 09:44:50 +0800 Subject: [PATCH] refactor: use is-ci instead of env.ci --- scripts/build-fixtures | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build-fixtures b/scripts/build-fixtures index ff66ca97a7..2eb6f5f676 100755 --- a/scripts/build-fixtures +++ b/scripts/build-fixtures @@ -6,6 +6,7 @@ const { cpus } = require('os') const spawnAsync = require('@expo/spawn-async') const Listr = require('listr') +const isCI = require('is-ci') const fixtures = [ 'children', @@ -49,7 +50,7 @@ for (let fixture of fixtures) { } const options = { - renderer: process.env.CI ? 'silent' : 'default', + renderer: isCI ? 'silent' : 'default', nonTTYRenderer: 'silent', concurrent: Math.min(4, cpus().length) }