ci-scripts: use jq to modify NPM dependencies
This commit is contained in:
parent
d3c98050ce
commit
69cd6f9c1a
@ -396,7 +396,8 @@ fi
|
||||
# -------------
|
||||
if [[ "${BUMP_NPM_DEPENDENCY_VERSION}" == true ]]; then
|
||||
pushd ${PROJECT_PATH}
|
||||
npm install "${DEPENDENCY}@${VERSION}" --save-exact=true --legacy-peer-deps
|
||||
tmp=$(mktemp) && jq ".dependencies.\"${DEPENDENCY}\" = \"${VERSION}\"" package.json >"$tmp" && mv "$tmp" package.json
|
||||
# npm install "${DEPENDENCY}@${VERSION}" --save-exact=true --legacy-peer-deps
|
||||
popd
|
||||
fi
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user