This commit is contained in:
Benjamin Toby 2025-01-16 07:48:00 +01:00
parent 2118f04b63
commit 918afc5d2c
2 changed files with 12 additions and 3 deletions

View File

@ -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"

10
run.sh Executable file
View File

@ -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