Skip to content

Commit 0dd9c7e

Browse files
authored
Merge pull request #446 from paescuj/replace-is-ci-by-ci-info
Replace dependency `is-ci` by `ci-info`
2 parents c69b2a2 + d318190 commit 0dd9c7e

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
"@types/app-root-path": "^1.2.4",
5252
"@types/cross-spawn": "^6.0.0",
5353
"@types/fs-extra": "^9.0.0",
54-
"@types/is-ci": "^1.1.0",
5554
"@types/jest": "^24.0.11",
5655
"@types/minimist": "^1.2.2",
5756
"@types/node": "^12.0.0",
@@ -72,10 +71,10 @@
7271
"dependencies": {
7372
"@yarnpkg/lockfile": "^1.1.0",
7473
"chalk": "^4.1.2",
74+
"ci-info": "^3.7.0",
7575
"cross-spawn": "^7.0.3",
7676
"find-yarn-workspace-root": "^2.0.0",
7777
"fs-extra": "^9.0.0",
78-
"is-ci": "^2.0.0",
7978
"klaw-sync": "^6.0.0",
8079
"minimist": "^1.2.6",
8180
"open": "^7.4.2",

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { detectPackageManager } from "./detectPackageManager"
1010
import { join } from "./path"
1111
import { normalize, sep } from "path"
1212
import slash = require("slash")
13-
import isCi from "is-ci"
13+
import { isCI } from "ci-info"
1414

1515
const appPath = getAppRootPath()
1616
const argv = minimist(process.argv.slice(2), {
@@ -78,7 +78,7 @@ if (argv.version || argv.v) {
7878
// don't want to exit(1) on postinsall locally.
7979
// see https://github.com/ds300/patch-package/issues/86
8080
const shouldExitWithError =
81-
!!argv["error-on-fail"] || isCi || process.env.NODE_ENV === "test"
81+
!!argv["error-on-fail"] || isCI || process.env.NODE_ENV === "test"
8282

8383
const shouldExitWithWarning = !!argv["error-on-warn"]
8484

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -432,11 +432,6 @@
432432
resolved "https://registry.yarnpkg.com/@types/http-cache-semantics/-/http-cache-semantics-4.0.0.tgz#9140779736aa2655635ee756e2467d787cfe8a2a"
433433
integrity sha512-c3Xy026kOF7QOTn00hbIllV1dLR9hG9NkSrLQgCVs8NF6sBU+VGWjD3wLPhmh1TYAc7ugCFsvHYMN4VcBN1U1A==
434434

435-
"@types/is-ci@^1.1.0":
436-
version "1.1.0"
437-
resolved "https://registry.yarnpkg.com/@types/is-ci/-/is-ci-1.1.0.tgz#583c5fbfcc461be9971106b9558930d67df49227"
438-
integrity sha512-NbyqP5D4hwl5UWnnW4Cz0gIRjhecgx/9OApcCIpp4+tjqjROGf/NBcKKDfbI3YFBTTkD3JBshiNSv5V7VoVJJg==
439-
440435
"@types/istanbul-lib-coverage@^1.1.0":
441436
version "1.1.0"
442437
resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-1.1.0.tgz#2cc2ca41051498382b43157c8227fea60363f94a"
@@ -1109,6 +1104,11 @@ ci-info@^2.0.0:
11091104
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46"
11101105
integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==
11111106

1107+
ci-info@^3.7.0:
1108+
version "3.7.0"
1109+
resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.7.0.tgz#6d01b3696c59915b6ce057e4aa4adfc2fa25f5ef"
1110+
integrity sha512-2CpRNYmImPx+RXKLq6jko/L07phmS9I02TyqkcNU20GCF/GgaWvc58hPtjxDX8lPpkdwc9sNh72V9k00S7ezog==
1111+
11121112
class-utils@^0.3.5:
11131113
version "0.3.6"
11141114
resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463"

0 commit comments

Comments
 (0)