diff --git a/package.json b/package.json index 3e9e49fb1..d794fa144 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,6 @@ "glob": "7.1.6", "gradle-to-js": "2.0.0", "inversify": "5.0.1", - "is-travis": "^2.0.0", "js-yaml": "3.13.1", "lodash": "4.17.15", "memfs": "3.0.3", diff --git a/src/index.ts b/src/index.ts index 11402450a..c2644dc04 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,7 +9,6 @@ import updateNotifier from 'update-notifier'; import { ScanningStrategyDetectorUtils } from './detectors/utils/ScanningStrategyDetectorUtils'; import { PracticeImpact } from './model'; import { ServiceType } from './detectors/ScanningStrategyDetector'; -import isTravis from 'is-travis'; import debug from 'debug'; class DXScannerCommand extends Command { @@ -70,7 +69,7 @@ class DXScannerCommand extends Command { let scanResult = await scanner.scan(); - if (scanResult.needsAuth && !isTravis) { + if (scanResult.needsAuth && !flags.ci) { if (ScanningStrategyDetectorUtils.isGitHubPath(scanPath) || scanResult.serviceType === ServiceType.github) { authorization = await cli.prompt('Insert your GitHub personal access token. https://github.com/settings/tokens\n', { type: 'hide', diff --git a/types/is-travis/index.d.ts b/types/is-travis/index.d.ts deleted file mode 100644 index 79f43392f..000000000 --- a/types/is-travis/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -declare module 'is-travis' { - const isTravis: boolean; - export = isTravis; -}