From 0ad54e7939a5671a608230c99ec90e2c927868d4 Mon Sep 17 00:00:00 2001 From: 4gray Date: Fri, 1 May 2026 18:59:24 +0200 Subject: [PATCH] fix(workspace-shell): accept readonly viewCommands in palette builder Production build (stricter than test/dev) flagged the helper signature as requiring a mutable array while WorkspaceViewCommandService.commands returns readonly. The body uses spread, so widening the parameter to readonly is the correct fix and unblocks `nx build web` plus E2E. Co-Authored-By: Claude Opus 4.7 (1M context) Entire-Checkpoint: c2cea9c530e6 --- .../services/helpers/workspace-shell-command-builders.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/workspace/shell/feature/src/lib/workspace-shell/services/helpers/workspace-shell-command-builders.ts b/libs/workspace/shell/feature/src/lib/workspace-shell/services/helpers/workspace-shell-command-builders.ts index 35e17d28d..e1ef7693c 100644 --- a/libs/workspace/shell/feature/src/lib/workspace-shell/services/helpers/workspace-shell-command-builders.ts +++ b/libs/workspace/shell/feature/src/lib/workspace-shell/services/helpers/workspace-shell-command-builders.ts @@ -38,7 +38,7 @@ export interface CommandBuilderContext { export function buildCommandPaletteItems( ctx: CommandBuilderContext, - viewCommands: WorkspaceCommandContribution[] + viewCommands: readonly WorkspaceCommandContribution[] ): WorkspaceResolvedCommandItem[] { return [ ...getViewCommandDefinitions(ctx),