Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Support legacy processmaker.build package.json schema.
Branches like modeler ci-test still use processmaker.build.command and
downstream; accept either format and skip missing downstream when scanning.

Co-authored-by: Cursor <cursoragent@cursor.com>
  • Loading branch information
nolanpro and cursoragent committed Sep 22, 2026
commit 2d02060274b0525d72bd87ce41a54a32dc4ef703
10 changes: 2 additions & 8 deletions .github/scripts/js-stack-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,7 @@ resolve_ref() {
}

get_downstream() {
jq -r '
if (.processmaker | has("downstream")) then
.processmaker.downstream[]?
else
error("processmaker.downstream is required in package.json")
end
'
jq -r '(.processmaker.downstream // .processmaker.build.downstream // [])[]?'
}

get_build_command() {
Expand Down Expand Up @@ -258,7 +252,7 @@ build_package() {
fi

local build_cmd
build_cmd=$(jq -r '.processmaker.command // empty' package.json)
build_cmd=$(jq -r '.processmaker.command // .processmaker.build.command // empty' package.json)
if [[ -z "$build_cmd" || "$build_cmd" == "null" ]]; then
echo "::error::processmaker.command is required in package.json" >&2
exit 1
Expand Down