From 7917132ae6e3fbbd52997e34c04b0baf8b4cee7d Mon Sep 17 00:00:00 2001 From: butlerx Date: Wed, 7 Oct 2020 10:03:38 +0100 Subject: [PATCH] re-Add build command to package.json --- package.json | 7 +++++-- src/main.ts | 4 ++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f09316d..b000d5a 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,15 @@ { "name": "wetty", - "version": "2.0.0", + "version": "2.0.1", "description": "WeTTY = Web + TTY. Terminal access in browser over http/https", "homepage": "https://github.com/butlerx/wetty", "license": "MIT", "type": "module", + "bin": { + "wetty": "./build/main.js" + }, "main": "./build/main.js", - "module": "./build/server.js", + "exports": "./build/server.js", "files": [ "build/" ], diff --git a/src/main.ts b/src/main.ts index 668304c..2ea3ef3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,10 @@ +#!/usr/bin/env node + /** * Create WeTTY server * @module WeTTy + * + * This is the cli Interface for wetty. */ import yargs from 'yargs'; import { logger } from './shared/logger.js';