diff --git a/package.json b/package.json index 7e5df20e..245b46d5 100644 --- a/package.json +++ b/package.json @@ -51,7 +51,6 @@ "@types/app-root-path": "^1.2.4", "@types/cross-spawn": "^6.0.0", "@types/fs-extra": "^9.0.0", - "@types/is-ci": "^1.1.0", "@types/jest": "^24.0.11", "@types/minimist": "^1.2.2", "@types/node": "^12.0.0", @@ -72,10 +71,10 @@ "dependencies": { "@yarnpkg/lockfile": "^1.1.0", "chalk": "^4.1.2", + "ci-info": "^3.7.0", "cross-spawn": "^7.0.3", "find-yarn-workspace-root": "^2.0.0", "fs-extra": "^9.0.0", - "is-ci": "^2.0.0", "klaw-sync": "^6.0.0", "minimist": "^1.2.6", "open": "^7.4.2", diff --git a/src/index.ts b/src/index.ts index c9ccc236..cfede961 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,7 +10,7 @@ import { detectPackageManager } from "./detectPackageManager" import { join } from "./path" import { normalize, sep } from "path" import slash = require("slash") -import isCi from "is-ci" +import { isCI } from "ci-info" const appPath = getAppRootPath() const argv = minimist(process.argv.slice(2), { @@ -78,7 +78,7 @@ if (argv.version || argv.v) { // don't want to exit(1) on postinsall locally. // see https://github.com/ds300/patch-package/issues/86 const shouldExitWithError = - !!argv["error-on-fail"] || isCi || process.env.NODE_ENV === "test" + !!argv["error-on-fail"] || isCI || process.env.NODE_ENV === "test" const shouldExitWithWarning = !!argv["error-on-warn"] diff --git a/yarn.lock b/yarn.lock index 81d489f1..57f99742 100644 --- a/yarn.lock +++ b/yarn.lock @@ -432,11 +432,6 @@ resolved "https://registry.yarnpkg.com/@types/http-cache-semantics/-/http-cache-semantics-4.0.0.tgz#9140779736aa2655635ee756e2467d787cfe8a2a" integrity sha512-c3Xy026kOF7QOTn00hbIllV1dLR9hG9NkSrLQgCVs8NF6sBU+VGWjD3wLPhmh1TYAc7ugCFsvHYMN4VcBN1U1A== -"@types/is-ci@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@types/is-ci/-/is-ci-1.1.0.tgz#583c5fbfcc461be9971106b9558930d67df49227" - integrity sha512-NbyqP5D4hwl5UWnnW4Cz0gIRjhecgx/9OApcCIpp4+tjqjROGf/NBcKKDfbI3YFBTTkD3JBshiNSv5V7VoVJJg== - "@types/istanbul-lib-coverage@^1.1.0": version "1.1.0" 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: resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-2.0.0.tgz#67a9e964be31a51e15e5010d58e6f12834002f46" integrity sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ== +ci-info@^3.7.0: + version "3.7.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-3.7.0.tgz#6d01b3696c59915b6ce057e4aa4adfc2fa25f5ef" + integrity sha512-2CpRNYmImPx+RXKLq6jko/L07phmS9I02TyqkcNU20GCF/GgaWvc58hPtjxDX8lPpkdwc9sNh72V9k00S7ezog== + class-utils@^0.3.5: version "0.3.6" resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463"