diff --git a/scripts/nx-release.ts b/scripts/nx-release.ts index b313dbbd122fe..8cf8fa7aa31f9 100755 --- a/scripts/nx-release.ts +++ b/scripts/nx-release.ts @@ -1,5 +1,6 @@ #!/usr/bin/env node import { createProjectGraphAsync, workspaceRoot } from '@nx/devkit'; +import * as chalk from 'chalk'; import { execSync } from 'node:child_process'; import { rmSync, writeFileSync } from 'node:fs'; import { join } from 'node:path'; @@ -7,7 +8,6 @@ import { URL } from 'node:url'; import { isRelativeVersionKeyword } from 'nx/src/command-line/release/utils/semver'; import { ReleaseType, inc, major, parse } from 'semver'; import * as yargs from 'yargs'; -import * as chalk from 'chalk'; const LARGE_BUFFER = 1024 * 1000000; @@ -58,6 +58,9 @@ const LARGE_BUFFER = 1024 * 1000000; if (options.dryRun) { versionCommand += ' --dry-run'; } + if (isVerboseLogging) { + versionCommand += ' --verbose'; + } console.log(`> ${versionCommand}`); execSync(versionCommand, { stdio: isVerboseLogging ? [0, 1, 2] : 'ignore', @@ -95,6 +98,9 @@ const LARGE_BUFFER = 1024 * 1000000; if (options.dryRun) { changelogCommand += ' --dry-run'; } + if (isVerboseLogging) { + changelogCommand += ' --verbose'; + } console.log(`> ${changelogCommand}`); execSync(changelogCommand, { stdio: isVerboseLogging ? [0, 1, 2] : 'ignore',