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, });