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 <cursoragent@cursor.com>

* 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 <cursoragent@cursor.com>

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Michaela
2026-05-20 14:32:01 +02:00
committed by GitHub
co-authored by Cursor
parent ece50ac32c
commit 4044fafc39
+1 -1
View File
@@ -47,7 +47,7 @@
"options": {
"commands": [
{
"command": "cd lib/cli && npm i"
"command": "cd lib/cli && npm i --omit=prod --no-audit --no-fund"
}
]
}