Make it possible to run as global package

master
Kuba Orlik 3 years ago
parent 98b4384eb1
commit 823b00acc3

@ -1,3 +1,5 @@
#!/usr/bin/node
import Koa from "koa";
import Router from "@koa/router";
import axios from "axios";
@ -15,3 +17,4 @@ const app = new Koa();
app.use(router.routes());
app.listen(8383);
console.log("Listening on port 8383");

@ -6,6 +6,9 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"bin": {
"opaque-proxy": "./index.mjs"
},
"author": "",
"license": "ISC",
"dependencies": {

Loading…
Cancel
Save