Skip to content

Commit b8a5280

Browse files
chore: replace is-ci with underlying ci-info package (#30465)
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>
1 parent 41623ed commit b8a5280

File tree

9 files changed

+68
-13
lines changed

9 files changed

+68
-13
lines changed

cli/lib/util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const la = require('lazy-ass')
77
const is = require('check-more-types')
88
const tty = require('tty')
99
const path = require('path')
10-
const isCi = require('is-ci')
10+
const isCi = require('ci-info').isCI
1111
const execa = require('execa')
1212
const getos = require('getos')
1313
const chalk = require('chalk')

cli/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"cachedir": "^2.3.0",
3232
"chalk": "^4.1.0",
3333
"check-more-types": "^2.24.0",
34+
"ci-info": "^4.0.0",
3435
"cli-cursor": "^3.1.0",
3536
"cli-table3": "~0.6.1",
3637
"commander": "^6.2.1",
@@ -45,7 +46,6 @@
4546
"figures": "^3.2.0",
4647
"fs-extra": "^9.1.0",
4748
"getos": "^3.2.1",
48-
"is-ci": "^3.0.1",
4949
"is-installed-globally": "~0.4.0",
5050
"lazy-ass": "^1.6.0",
5151
"listr2": "^3.8.3",

packages/errors/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
"@types/pngjs": "^6.0.1",
3131
"ansi-styles": "^5",
3232
"chai": "4.2.0",
33+
"ci-info": "^4.0.0",
3334
"globby": "^11.1.0",
34-
"is-ci": "^3.0.1",
3535
"mocha": "7.0.1",
3636
"pngjs": "^6.0.0",
3737
"rimraf": "5.0.10",

packages/errors/test/support/utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import fse from 'fs-extra'
44
import path from 'path'
55
import { PNG } from 'pngjs'
66

7-
const isCi = require('is-ci')
7+
const isCi = require('ci-info').isCI
88

99
if (app) {
1010
app.on('window-all-closed', () => {

packages/errors/test/unit/visualSnapshotErrors_spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ process.env.CYPRESS_INTERNAL_ENV = 'test'
1515

1616
// require'd so the unsafe types from the server / missing types don't mix in here
1717
const termToHtml = require('term-to-html')
18-
const isCi = require('is-ci')
18+
const isCi = require('ci-info').isCI
1919
const { terminalBanner } = require('terminal-banner')
2020
const ciProvider = require('@packages/server/lib/util/ci_provider')
2121
const browsers = require('@packages/server/lib/browsers')

packages/server/lib/util/ci_provider.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const _ = require('lodash')
2-
const isCi = require('is-ci')
2+
const isCi = require('ci-info').isCI
33
const debug = require('debug')('cypress:server')
44

55
const getIsCi = () => isCi

packages/server/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"check-more-types": "2.24.0",
4848
"chokidar": "3.5.1",
4949
"chrome-remote-interface": "0.33.2",
50+
"ci-info": "^4.0.0",
5051
"cli-table3": "0.5.1",
5152
"coffeescript": "2.6.0",
5253
"color-string": "1.5.5",
@@ -80,7 +81,6 @@
8081
"http-proxy": "1.18.1",
8182
"human-interval": "1.0.0",
8283
"image-size": "1.1.1",
83-
"is-ci": "^3.0.1",
8484
"is-fork-pr": "2.5.0",
8585
"is-html": "2.0.0",
8686
"jimp": "0.22.12",

system-tests/lib/system-tests.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
browserNameVersionRe,
1717
} from './normalizeStdout'
1818

19-
const isCi = require('is-ci')
19+
const isCi = require('ci-info').isCI
2020

2121
require('mocha-banner').register()
2222
const chalk = require('chalk').default

yarn.lock

+60-5
Original file line numberDiff line numberDiff line change
@@ -19174,7 +19174,7 @@ is-ci@2.0.0, is-ci@^2.0.0:
1917419174
dependencies:
1917519175
ci-info "^2.0.0"
1917619176

19177-
is-ci@3.0.1, is-ci@^3.0.0, is-ci@^3.0.1:
19177+
is-ci@3.0.1, is-ci@^3.0.0:
1917819178
version "3.0.1"
1917919179
resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-3.0.1.tgz#db6ecbed1bd659c43dac0f45661e7674103d1867"
1918019180
integrity sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==
@@ -22340,7 +22340,7 @@ mobx@5.15.4:
2234022340
resolved "https://registry.yarnpkg.com/mobx/-/mobx-5.15.4.tgz#9da1a84e97ba624622f4e55a0bf3300fb931c2ab"
2234122341
integrity sha512-xRFJxSU2Im3nrGCdjSuOTFmxVDGeqOHL+TyADCGbT0k4HHqGmx5u2yaHNryvoORpI4DfbzjJ5jPmuv+d7sioFw==
2234222342

22343-
"mocha-7.0.1@npm:mocha@7.0.1", mocha@7.0.1:
22343+
"mocha-7.0.1@npm:mocha@7.0.1":
2234422344
version "7.0.1"
2234522345
resolved "https://registry.yarnpkg.com/mocha/-/mocha-7.0.1.tgz#276186d35a4852f6249808c6dd4a1376cbf6c6ce"
2234622346
integrity sha512-9eWmWTdHLXh72rGrdZjNbG3aa1/3NRPpul1z0D979QpEnFdCG0Q5tv834N+94QEN2cysfV72YocQ3fn87s70fg==
@@ -22457,6 +22457,36 @@ mocha@6.2.2:
2245722457
yargs-parser "13.1.1"
2245822458
yargs-unparser "1.6.0"
2245922459

22460+
mocha@7.0.1:
22461+
version "7.0.1"
22462+
resolved "https://registry.yarnpkg.com/mocha/-/mocha-7.0.1.tgz#276186d35a4852f6249808c6dd4a1376cbf6c6ce"
22463+
integrity sha512-9eWmWTdHLXh72rGrdZjNbG3aa1/3NRPpul1z0D979QpEnFdCG0Q5tv834N+94QEN2cysfV72YocQ3fn87s70fg==
22464+
dependencies:
22465+
ansi-colors "3.2.3"
22466+
browser-stdout "1.3.1"
22467+
chokidar "3.3.0"
22468+
debug "3.2.6"
22469+
diff "3.5.0"
22470+
escape-string-regexp "1.0.5"
22471+
find-up "3.0.0"
22472+
glob "7.1.3"
22473+
growl "1.10.5"
22474+
he "1.2.0"
22475+
js-yaml "3.13.1"
22476+
log-symbols "2.2.0"
22477+
minimatch "3.0.4"
22478+
mkdirp "0.5.1"
22479+
ms "2.1.1"
22480+
node-environment-flags "1.0.6"
22481+
object.assign "4.1.0"
22482+
strip-json-comments "2.0.1"
22483+
supports-color "6.0.0"
22484+
which "1.3.1"
22485+
wide-align "1.1.3"
22486+
yargs "13.3.0"
22487+
yargs-parser "13.1.1"
22488+
yargs-unparser "1.6.0"
22489+
2246022490
mocha@7.1.0:
2246122491
version "7.1.0"
2246222492
resolved "https://registry.yarnpkg.com/mocha/-/mocha-7.1.0.tgz#c784f579ad0904d29229ad6cb1e2514e4db7d249"
@@ -29226,7 +29256,7 @@ string-template@~0.2.1:
2922629256
resolved "https://registry.yarnpkg.com/string-template/-/string-template-0.2.1.tgz#42932e598a352d01fc22ec3367d9d84eec6c9add"
2922729257
integrity sha1-QpMuWYo1LQH8IuwzZ9nYTuxsmt0=
2922829258

29229-
"string-width-cjs@npm:string-width@^4.2.0", "string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
29259+
"string-width-cjs@npm:string-width@^4.2.0":
2923029260
version "4.2.3"
2923129261
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
2923229262
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
@@ -29252,6 +29282,15 @@ string-width@^1.0.1, string-width@^1.0.2:
2925229282
is-fullwidth-code-point "^2.0.0"
2925329283
strip-ansi "^4.0.0"
2925429284

29285+
"string-width@^1.0.2 || 2 || 3 || 4", string-width@^4.0.0, string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
29286+
version "4.2.3"
29287+
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
29288+
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
29289+
dependencies:
29290+
emoji-regex "^8.0.0"
29291+
is-fullwidth-code-point "^3.0.0"
29292+
strip-ansi "^6.0.1"
29293+
2925529294
string-width@^3.0.0, string-width@^3.1.0:
2925629295
version "3.1.0"
2925729296
resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961"
@@ -29353,7 +29392,7 @@ stringify-object@^3.0.0, stringify-object@^3.3.0:
2935329392
is-obj "^1.0.1"
2935429393
is-regexp "^1.0.0"
2935529394

29356-
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
29395+
"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
2935729396
version "6.0.1"
2935829397
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
2935929398
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
@@ -29374,6 +29413,13 @@ strip-ansi@5.2.0, strip-ansi@^5.0.0, strip-ansi@^5.1.0, strip-ansi@^5.2.0:
2937429413
dependencies:
2937529414
ansi-regex "^4.1.0"
2937629415

29416+
strip-ansi@6.0.1, strip-ansi@^6.0.0, strip-ansi@^6.0.1:
29417+
version "6.0.1"
29418+
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
29419+
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
29420+
dependencies:
29421+
ansi-regex "^5.0.1"
29422+
2937729423
strip-ansi@^3.0.0, strip-ansi@^3.0.1:
2937829424
version "3.0.1"
2937929425
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf"
@@ -32383,7 +32429,7 @@ workerpool@6.2.0:
3238332429
resolved "https://registry.yarnpkg.com/workerpool/-/workerpool-6.2.0.tgz#827d93c9ba23ee2019c3ffaff5c27fccea289e8b"
3238432430
integrity sha512-Rsk5qQHJ9eowMH28Jwhe8HEbmdYDX4lwoMWshiCXugjtHqMD9ZbiqSDLxcsfdqsETPzVUtX5s1Z5kStiIM6l4A==
3238532431

32386-
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
32432+
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
3238732433
version "7.0.0"
3238832434
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
3238932435
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
@@ -32426,6 +32472,15 @@ wrap-ansi@^6.2.0:
3242632472
string-width "^4.1.0"
3242732473
strip-ansi "^6.0.0"
3242832474

32475+
wrap-ansi@^7.0.0:
32476+
version "7.0.0"
32477+
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
32478+
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
32479+
dependencies:
32480+
ansi-styles "^4.0.0"
32481+
string-width "^4.1.0"
32482+
strip-ansi "^6.0.0"
32483+
3242932484
wrap-ansi@^8.0.1, wrap-ansi@^8.1.0:
3243032485
version "8.1.0"
3243132486
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214"

0 commit comments

Comments
 (0)