From 09d49fa3c6519d5846722be9a1bac822ccf6cf59 Mon Sep 17 00:00:00 2001 From: Alan Agius <17563226+alan-agius4@users.noreply.github.com> Date: Fri, 13 Feb 2026 09:43:01 +0000 Subject: [PATCH] fix(ng-dev): add silent flag to pnpm commands for reduced output. This fixes an issue with the LTS release of the Angular CLI `SyntaxError: Unexpected token '>', "> @angular"... is not valid JSON`. --- ng-dev/release/publish/external-commands.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ng-dev/release/publish/external-commands.ts b/ng-dev/release/publish/external-commands.ts index a3c9c8cca..69e07c24d 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('pnpm', args, { + return ChildProcess.spawn('pnpm', ['-s', ...args], { ...spawnOptions, cwd: projectDir, });