feat: new bun_build and bun_compile, extend bun_install

This commit is contained in:
eric
2026-03-15 00:11:55 +01:00
parent c446f23a35
commit a0bc998bd2
58 changed files with 1845 additions and 191 deletions

View File

@@ -0,0 +1,29 @@
#!/usr/bin/env bash
set -euo pipefail
output_dir=""
meta_json=""
meta_md=""
for path in "$@"; do
case "${path}" in
*.meta.json) meta_json="${path}" ;;
*.meta.md) meta_md="${path}" ;;
*) output_dir="${path}" ;;
esac
done
if [[ ! -d ${output_dir} ]]; then
echo "Expected directory output, got: ${output_dir}" >&2
exit 1
fi
if [[ ! -f ${meta_json} ]]; then
echo "Expected JSON metafile output" >&2
exit 1
fi
if [[ ! -f ${meta_md} ]]; then
echo "Expected markdown metafile output" >&2
exit 1
fi