update the version of node.js in all packages

Oct 20, 2023

Just a little bash loop I cooked up that I wanted to save so I remember it:

for pack in $(fd package.json -E 'bower_components'); do
  tmp=$(mktemp)
  jq '.engines = {node: "18.17.1", npm: "^9"}' "$pack" > "$tmp"
  mv "$tmp" "$pack"
done

requires fd and jq

↑ up