File: 01-is-ci.diff

package info (click to toggle)
node-yarnpkg 1.13.0-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 93,036 kB
  • sloc: sh: 323; makefile: 19
file content (48 lines) | stat: -rw-r--r-- 1,478 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Description: Patch away is-ci (not packaged yet in Debian).
Forwarded: not-needed
Author: Paolo Greppi <paolo.greppi@libpf.com>

--- a/__tests__/commands/global.js
+++ b/__tests__/commands/global.js
@@ -6,7 +6,7 @@
 import {run as global} from '../../src/cli/commands/global.js';
 import * as fs from '../../src/util/fs.js';
 import mkdir from '../_temp.js';
-const isCI = require('is-ci');
+var isCI = require('ci-info').isCI;
 
 jasmine.DEFAULT_TIMEOUT_INTERVAL = 90000;
 
--- a/src/reporters/base-reporter.js
+++ b/src/reporters/base-reporter.js
@@ -18,7 +18,7 @@
 
 import {defaultFormatter} from './format.js';
 import * as languages from './lang/index.js';
-import isCI from 'is-ci';
+var isCI = require('ci-info').isCI;
 import os from 'os';
 
 const util = require('util');
--- a/src/reporters/noop-reporter.js
+++ b/src/reporters/noop-reporter.js
@@ -16,7 +16,7 @@
 import type {Formatter} from './format.js';
 import {defaultFormatter} from './format.js';
 import * as languages from './lang/index.js';
-import isCI from 'is-ci';
+var isCI = require('ci-info').isCI;
 import BaseReporter from './base-reporter.js';
 
 export default class NoopReporter extends BaseReporter {
--- a/src/config.js
+++ b/src/config.js
@@ -21,7 +21,7 @@
 const invariant = require('invariant');
 const path = require('path');
 const micromatch = require('micromatch');
-const isCi = require('is-ci');
+var isCi = require('ci-info').isCI;
 
 export type ConfigOptions = {
   cwd?: ?string,