isInteractive.js 561 B

123456789101112131415161718192021222324252627
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. function _ciInfo() {
  7. const data = require('ci-info');
  8. _ciInfo = function () {
  9. return data;
  10. };
  11. return data;
  12. }
  13. /**
  14. * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
  15. *
  16. * This source code is licensed under the MIT license found in the
  17. * LICENSE file in the root directory of this source tree.
  18. */
  19. var _default =
  20. !!process.stdout.isTTY && process.env.TERM !== 'dumb' && !_ciInfo().isCI;
  21. exports.default = _default;