Skip to content

Commit

Permalink
refactor: update log statement to match sed expression
Browse files Browse the repository at this point in the history
  • Loading branch information
kgryte committed Nov 7, 2023
1 parent 0e498a6 commit be0868a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/scripts/npm_publish
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ update_internal_dependencies() {
for dependency in ${dependencies}; do
pkgVersion="$(npm view "${dependency}" version)"
echo "Updating ${dependency} to ${pkgVersion} in ${package_json}..." >&2
echo "s/\"${dependency}\":[^,]*/\"${dependency}\": \"${pkgVersion}\"/" >&2
echo "s%\"${dependency}\":[^,]*%\"${dependency}\": \"${pkgVersion}\"%" >&2
if [[ "$OSTYPE" == "darwin"* ]]; then
sed -i '' "s%\"${dependency}\":[^,]*%\"${dependency}\": \"${pkgVersion}\"%" "${package_json}"
else
Expand Down

0 comments on commit be0868a

Please sign in to comment.