From 6f4378cf90d56cbc7f01ebc290ae8cca894fdb27 Mon Sep 17 00:00:00 2001 From: Joey Perrott Date: Wed, 10 Dec 2025 19:59:23 +0000 Subject: [PATCH] fix(ng-dev): don't run the pnpm run script spawn as silent mode --- ng-dev/release/publish/actions.ts | 4 ++-- ng-dev/release/publish/external-commands.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ng-dev/release/publish/actions.ts b/ng-dev/release/publish/actions.ts index 0eb480b8a..a2559749d 100644 --- a/ng-dev/release/publish/actions.ts +++ b/ng-dev/release/publish/actions.ts @@ -392,7 +392,7 @@ export abstract class ReleaseAction { // cause the pnpm install from within Bazel to errantly attempt to install a package that // does not exist. try { - this.git.run(['clean', '-qdfX', '**/node_modules']); + this.git.run(['clean', '-dfX', '**/node_modules']); } catch {} await ExternalCommands.invokePnpmInstall(this.projectDir); return; @@ -405,7 +405,7 @@ export abstract class ReleaseAction { // we might be able to fix this with Yarn 2+, it is reasonable ensuring clean node modules. // TODO: Remove this when we use Yarn 2+ in all Angular repositories. try { - this.git.run(['clean', '-qdfX', '**/node_modules']); + this.git.run(['clean', '-dfX', '**/node_modules']); } catch {} await ExternalCommands.invokeYarnInstall(this.projectDir); } diff --git a/ng-dev/release/publish/external-commands.ts b/ng-dev/release/publish/external-commands.ts index 580093a14..d48ca8636 100644 --- a/ng-dev/release/publish/external-commands.ts +++ b/ng-dev/release/publish/external-commands.ts @@ -256,7 +256,7 @@ export abstract class ExternalCommands { spawnOptions: SpawnOptions = {}, ): Promise { if (PnpmVersioning.isUsingPnpm(projectDir)) { - return ChildProcess.spawn('npx', ['--yes', 'pnpm', '-s', 'run', ...args], { + return ChildProcess.spawn('npx', ['--yes', 'pnpm', 'run', ...args], { ...spawnOptions, cwd: projectDir, });