# Upstream builds every workspace package with the same shared config.
# pnpm is not available (nor needed) in Debian, so loop over them here.
for p in babel-plugin-add-jsx-attribute babel-plugin-remove-jsx-attribute babel-plugin-remove-jsx-empty-expression babel-plugin-replace-jsx-attribute-value babel-plugin-svg-dynamic-title babel-plugin-svg-em-dimensions babel-plugin-transform-react-native-svg babel-plugin-transform-svg-component babel-preset core hast-util-to-babel-ast plugin-jsx plugin-svgo webpack cli rollup; do
  echo "=== building $p ==="
  (cd "packages/$p" && rollup -c ../../build/rollup.config.mjs)
done
