Skip to content

Commit

Permalink
Removing is-ci in favor of ci-info
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Li committed Sep 9, 2019
1 parent 391269e commit 44c778e
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -51,10 +51,10 @@
"homepage": "https://github.com/typicode/husky#readme",
"dependencies": {
"chalk": "^2.4.2",
"ci-info": "^2.0.0",
"cosmiconfig": "^5.2.1",
"execa": "^1.0.0",
"get-stdin": "^7.0.0",
"is-ci": "^2.0.0",
"opencollective-postinstall": "^2.0.2",
"pkg-dir": "^4.2.0",
"please-upgrade-node": "^3.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/global.d.ts
@@ -1,3 +1,3 @@
declare module 'execa'
declare module 'is-ci'
declare module 'ci-info'
declare module 'slash'
5 changes: 4 additions & 1 deletion 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 './'
Expand All @@ -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
Expand Down

0 comments on commit 44c778e

Please sign in to comment.