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 Koa from "koa";
import Router from "@koa/router"; import Router from "@koa/router";
import axios from "axios"; import axios from "axios";
@ -15,3 +17,4 @@ const app = new Koa();
app.use(router.routes()); app.use(router.routes());
app.listen(8383); app.listen(8383);
console.log("Listening on port 8383");

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

Loading…
Cancel
Save