From 4044fafc39033ef78c2521419f46383b6e57bfcd Mon Sep 17 00:00:00 2001 From: Michaela <85624192+mkrbr@users.noreply.github.com> Date: Wed, 20 May 2026 14:32:01 +0200 Subject: [PATCH] AAE-46219 Skip prod deps in cli:installDeps to unblock release (#11899) * [ci:force] AAE-46219 Remove redundant installDeps dependency from cli build target The build target's installDeps dependency is already covered transitively via bundle -> copyToNodeModules -> installDeps, and the duplicate npm i caused a race condition that broke the ADF release. Co-authored-by: Cursor * AAE-46219 Skip prod deps in cli:installDeps to unblock release The release workflow rewrites lib/cli/package.json so @alfresco/js-api points at an unpublished build-tagged version, then nx triggers cli:installDeps (cd lib/cli && npm i) which fails ETARGET. tsc only needs the devDependencies (typescript, @types/ejs, @types/node); @alfresco/js-api is resolved via the tsconfig "paths" mapping to dist/libs/js-api, not from node_modules. Adding --omit=prod skips the unresolvable runtime deps without affecting the published package. Also restores the build -> installDeps edge so tsc and npm install do not race in lib/cli/node_modules. Co-authored-by: Cursor --------- Co-authored-by: Cursor --- lib/cli/project.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cli/project.json b/lib/cli/project.json index ab3a9e250f..74e23cc72f 100644 --- a/lib/cli/project.json +++ b/lib/cli/project.json @@ -47,7 +47,7 @@ "options": { "commands": [ { - "command": "cd lib/cli && npm i" + "command": "cd lib/cli && npm i --omit=prod --no-audit --no-fund" } ] }