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