try jq again

Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
This commit is contained in:
Simon Smith 2025-10-26 23:05:39 +00:00
parent d073c8057d
commit bb854183d7

View File

@ -55,15 +55,13 @@ WORKDIR /opt/meshcentral
RUN cat meshcentral/package.json
RUN node -e "let pkg=require('./meshcentral/package.json');pkg.dependencies['modern-syslog']='1.2.0';pkg.dependencies['telegram']='2.26.22';require('fs').writeFileSync('./meshcentral/package.json',JSON.stringify(pkg,null,2));"
RUN cat meshcentral/package.json
# RUN jq '.dependencies["modern-syslog"] = "1.2.0"' package.json > tmp.$$.json \
# && mv tmp.$$.json package.json \
RUN jq '.dependencies["modern-syslog"] = "1.2.0"' meshcentral/package.json > tmp.$$.json \
&& mv tmp.$$.json meshcentral/package.json
# && npm i --package-lock-only \
# && npm ci
RUN cat meshcentral/package.json
# ### STAGE 3 RUNTIME
# FROM alpine:3.22 AS runtime