880: Support new compile/generate syntax for next >=14.2.0 #886

Merged
telackey merged 3 commits from telackey/880 into main 2024-07-24 20:20:18 +00:00
Showing only changes of commit bd198cd417 - Show all commits

View File

@ -107,6 +107,8 @@ if [ ! -f "package.dist" ]; then
cp package.json package.dist
fi
CUR_NEXT_VERSION="`jq -r '.dependencies.next' package.json`"
if [ "$CERC_NEXT_VERSION" != "keep" ] && [ "$CUR_NEXT_VERSION" != "$CERC_NEXT_VERSION" ]; then
echo "Changing 'next' version specifier from '$CUR_NEXT_VERSION' to '$CERC_NEXT_VERSION' (set with '--extra-build-args \"--build-arg CERC_NEXT_VERSION=$CERC_NEXT_VERSION\"')"
cat package.json | jq ".dependencies.next = \"$CERC_NEXT_VERSION\"" > package.json.$$