#!/bin/sh alias uglify-js=$PWD/bin/uglifyjs UGLIFY_OPTIONS=$@ minify_in_situ() { ARGS="$UGLIFY_OPTIONS --validate --in-situ" DIRS="$1" echo '> uglify-js' $DIRS $UGLIFY_OPTIONS for i in `find $DIRS -name '*.js'` do ARGS="$ARGS $i" done uglify-js $ARGS for i in `find $DIRS -name '*.ts' | grep -v '\.d\.ts'` do echo "$i" node_modules/.bin/esbuild --loader=ts --target=node14 < "$i" \ | uglify-js $UGLIFY_OPTIONS -o "$i" done } rm -rf tmp/rollup \ && git clone --depth 1 --branch v2.39.1 https://github.com/rollup/rollup.git tmp/rollup \ && cd tmp/rollup \ && rm -rf .git/hooks \ && patch -l -p1 <