From b041b76396c7d1b6d5ebb8b850629ef2bcfe1da9 Mon Sep 17 00:00:00 2001 From: Nils Date: Fri, 12 Sep 2025 08:58:41 +0200 Subject: [PATCH] executable --- meshcore-bot.js | 2 ++ package.json | 3 +++ 2 files changed, 5 insertions(+) mode change 100644 => 100755 meshcore-bot.js diff --git a/meshcore-bot.js b/meshcore-bot.js old mode 100644 new mode 100755 index a9b23db..ec98795 --- a/meshcore-bot.js +++ b/meshcore-bot.js @@ -1,3 +1,5 @@ +#!/usr/bin/env node + import { Constants, NodeJSSerialConnection } from "@liamcottle/meshcore.js"; import yargs from 'yargs'; import { hideBin } from 'yargs/helpers'; diff --git a/package.json b/package.json index 8bddaf9..ea9ec20 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,9 @@ "scripts": { "start": "node meshcore-bot.js" }, + "bin": { + "meshcore-bot": "./meshcore-bot.js" + }, "dependencies": { "@liamcottle/meshcore.js": "^1.6.0", "yargs": "^17.7.2"