From 719ad39d7dc36f44ba797364fdc36b82153ca4b6 Mon Sep 17 00:00:00 2001 From: Vincent Li Date: Mon, 9 Sep 2019 09:51:49 -0400 Subject: [PATCH] Removing is-ci in favor of ci-info --- package.json | 2 +- src/installer/bin.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 85ff7fce9..3fec99e6a 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,7 @@ "cosmiconfig": "^5.2.1", "execa": "^1.0.0", "get-stdin": "^7.0.0", - "is-ci": "^2.0.0", + "ci-info": "^2.0.0", "opencollective-postinstall": "^2.0.2", "pkg-dir": "^4.2.0", "please-upgrade-node": "^3.2.0", diff --git a/src/installer/bin.ts b/src/installer/bin.ts index 8e599dac2..b4527a0ef 100644 --- a/src/installer/bin.ts +++ b/src/installer/bin.ts @@ -1,5 +1,5 @@ import chalk from 'chalk' -import isCI from 'is-ci' +import ci from 'ci-info' import path from 'path' import debug from '../debug' import { install, uninstall } from './' @@ -13,6 +13,9 @@ debug(`INIT_CWD: ${process.env.INIT_CWD}`) // huskyDir is ONLY used in dev, don't use this arguments const [, , action, huskyDir = path.join(__dirname, '../..')] = process.argv +// Determine whether environment is CI +const { isCI } = ci.isCI + // Find Git dir try { // Show un/install message