Skip to content

Commit

Permalink
chore(release): add verbose arg to release script subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
fahslaj committed Jan 29, 2024
1 parent eb427c7 commit ac05089
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion scripts/nx-release.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
#!/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';
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;

Expand Down Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand Down

0 comments on commit ac05089

Please sign in to comment.