nx 22.2.0-beta.0 → 22.2.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,6 +5,7 @@ const enquirer_1 = require("enquirer");
5
5
  const os_1 = require("os");
6
6
  const output_1 = require("./output");
7
7
  const native_1 = require("../native");
8
+ const is_ci_1 = require("./is-ci");
8
9
  async function ensureNxConsoleInstalled() {
9
10
  const preferences = new native_1.NxConsolePreferences((0, os_1.homedir)());
10
11
  let setting = preferences.getAutoInstallPreference();
@@ -21,7 +22,10 @@ async function ensureNxConsoleInstalled() {
21
22
  if (!canInstallConsole) {
22
23
  return;
23
24
  }
24
- if (process.stdout.isTTY && typeof setting !== 'boolean') {
25
+ // Only prompt if both stdin and stdout are TTY (interactive terminal)
26
+ // and we're not in a CI environment
27
+ const isInteractive = process.stdin.isTTY && process.stdout.isTTY && !(0, is_ci_1.isCI)();
28
+ if (isInteractive && typeof setting !== 'boolean') {
25
29
  setting = await promptForNxConsoleInstallation();
26
30
  preferences.setAutoInstallPreference(setting);
27
31
  }