#!/bin/sh alias uglify-js=$PWD/bin/uglifyjs UGLIFY_OPTIONS=$@ minify_in_situ() { ARGS="$UGLIFY_OPTIONS --validate --in-situ" DIRS="$1" echo '> esbuild' $DIRS for i in `find $DIRS -type f -name '*.ts' | grep -v '\.d\.ts'` do echo "$i" CODE=`cat "$i"` node_modules/.bin/esbuild --loader=ts --target=esnext > "$i" < uglify-js' $DIRS $UGLIFY_OPTIONS for i in `find $DIRS -type f -name '*.js'` do ARGS="$ARGS $i" done uglify-js $ARGS } 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 <