summaryrefslogtreecommitdiff
path: root/packages/cli/src
diff options
context:
space:
mode:
authorAllen Hutchison <[email protected]>2025-07-25 09:39:37 -0700
committerGitHub <[email protected]>2025-07-25 16:39:37 +0000
commitfb0db2dfd6ff4150150c2a7b88442da5625cd609 (patch)
tree9b3f9db15fe0c96220025ba57e891ef7dd59346b /packages/cli/src
parent1d3ad9d0758a94e42fa88d20618d164fe1140f11 (diff)
adh/bugfix/1563 (#4822)
Diffstat (limited to 'packages/cli/src')
-rw-r--r--packages/cli/src/patches/is-in-ci.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/packages/cli/src/patches/is-in-ci.ts b/packages/cli/src/patches/is-in-ci.ts
new file mode 100644
index 00000000..a37c8678
--- /dev/null
+++ b/packages/cli/src/patches/is-in-ci.ts
@@ -0,0 +1,17 @@
+/**
+ * @license
+ * Copyright 2025 Google LLC
+ * SPDX-License-Identifier: Apache-2.0
+ */
+
+// This is a replacement for the `is-in-ci` package that always returns false.
+// We are doing this to avoid the issue where `ink` does not render the UI
+// when it detects that it is running in a CI environment.
+// This is safe because `ink` (and thus `is-in-ci`) is only used in the
+// interactive code path of the CLI.
+// See issue #1563 for more details.
+
+const isInCi = false;
+
+// eslint-disable-next-line import/no-default-export
+export default isInCi;