Browse Source

Merge pull request #278 from butlerx/bin

re-Add build command to package.json
pull/280/head v2.0.1
Cian Butler 4 years ago
committed by GitHub
parent
commit
d2a42d245a
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      package.json
  2. 4
      src/main.ts

7
package.json

@ -1,12 +1,15 @@
{ {
"name": "wetty", "name": "wetty",
"version": "2.0.0", "version": "2.0.1",
"description": "WeTTY = Web + TTY. Terminal access in browser over http/https", "description": "WeTTY = Web + TTY. Terminal access in browser over http/https",
"homepage": "https://github.com/butlerx/wetty", "homepage": "https://github.com/butlerx/wetty",
"license": "MIT", "license": "MIT",
"type": "module", "type": "module",
"bin": {
"wetty": "./build/main.js"
},
"main": "./build/main.js", "main": "./build/main.js",
"module": "./build/server.js", "exports": "./build/server.js",
"files": [ "files": [
"build/" "build/"
], ],

4
src/main.ts

@ -1,6 +1,10 @@
#!/usr/bin/env node
/** /**
* Create WeTTY server * Create WeTTY server
* @module WeTTy * @module WeTTy
*
* This is the cli Interface for wetty.
*/ */
import yargs from 'yargs'; import yargs from 'yargs';
import { logger } from './shared/logger.js'; import { logger } from './shared/logger.js';

Loading…
Cancel
Save