From 918afc5d2c5875e5164f4541a3bfcd6d08dfe5e4 Mon Sep 17 00:00:00 2001 From: Benjamin Toby Date: Thu, 16 Jan 2025 07:48:00 +0100 Subject: [PATCH] Updates --- package.json | 5 ++--- run.sh | 10 ++++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100755 run.sh diff --git a/package.json b/package.json index f68e8c8..c39f208 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,10 @@ { "name": "@moduletrace/nodecid", - "version": "1.0.1", + "version": "1.0.2", "description": "Simple CI/CD process", "main": "dist/index.js", "bin": { - "nodecid": "./dist/index.js", - "node-ci-cd": "./dist/index.js" + "nodecid": "run.sh" }, "scripts": { "compile": "bun build --compile --minify --sourcemap --bytecode index.ts --outfile bin/nodecid" 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