From 5fb1a9ece300f69b9684221386b15a43331f6ce4 Mon Sep 17 00:00:00 2001 From: marlonerler Date: Fri, 5 Jul 2024 19:53:19 +0200 Subject: [PATCH] fix executable --- index.ts | 2 ++ package.json | 5 ++--- 2 files changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 index.ts diff --git a/index.ts b/index.ts old mode 100644 new mode 100755 index 11967a3..15baf74 --- a/index.ts +++ b/index.ts @@ -1,3 +1,5 @@ +#!/usr/bin/env bun + import { ServerWebSocket, write } from "bun"; import { addConnection, diff --git a/package.json b/package.json index 4d0653b..9661bee 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,8 @@ "name": "udn", "version": "1.0.0-beta1", "description": "A websocket-based infrastructure for decentralized networks ", - "scripts": { - "test": "echo \"Error: no test specified\" && exit 1", - "start": "bun index.ts" + "bin": { + "start": "index.ts" }, "repository": { "type": "git",