From 2c800d507e4b5b56fdc5f3df2272f0475239b48d Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Thu, 16 Jan 2025 07:47:08 +0100 Subject: [PATCH] Updates --- package.json | 6 +++--- run.sh | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) create mode 100755 run.sh diff --git a/package.json b/package.json index 917a202..e2a552a 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,11 @@ { "name": "@moduletrace/batchrun", - "version": "1.0.3", + "version": "1.0.4", "description": "Run and manage multiple processes concurrently in one terminal", "main": "dist/index.js", "bin": { - "batch-run": "dist/index.js", - "batchrun": "dist/index.js" + "batch-run": "run.sh", + "batchrun": "run.sh" }, "scripts": { "build:binary": "bun build --compile --minify --sourcemap --bytecode ./index.js --outfile bin/batchrun" diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..3d00a53 --- /dev/null +++ b/run.sh @@ -0,0 +1,10 @@ +#!/bin/bash + +if command -v bun >/dev/null 2>&1; then + exec bun dist/index.js "$@" +elif command -v node >/dev/null 2>&1; then + exec node dist/index.js "$@" +else + echo "Neither Bun nor Node.js is installed." + exit 1 +fi