isInteractive.js 537 B

12345678910111213141516171819202122
  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) Meta Platforms, Inc. and affiliates.
  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;