Skip to content

Commit 47572ab

Browse files
authored
fix(ng-dev): ensure pnpm is silent when invoked as external command (#2660)
pnpm invoked via `npx` currently can bloat stdout and break the release tool. This commit fixes this.
1 parent 471dc97 commit 47572ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ng-dev/release/publish/external-commands.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ export abstract class ExternalCommands {
284284
): Promise<SpawnResult> {
285285
if (await pnpmVersioning.isUsingPnpm(projectDir)) {
286286
const pnpmSpec = await pnpmVersioning.getPackageSpec(projectDir);
287-
return ChildProcess.spawn('npx', ['--yes', pnpmSpec, 'run', ...args], {
287+
return ChildProcess.spawn('npx', ['--yes', pnpmSpec, '-s', 'run', ...args], {
288288
...spawnOptions,
289289
cwd: projectDir,
290290
});

0 commit comments

Comments
 (0)