Skip to content

Commit

Permalink
wip make runnable via npx
Browse files Browse the repository at this point in the history
  • Loading branch information
lawrence-forooghian committed Jul 24, 2024
1 parent 53e5fa5 commit 0b2e586
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions bin/interception-proxy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node
// This is the script which will be run when you run this package via `npx`.
require("../dist/server.js");
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
"name": "interception-proxy",
"version": "0.1.0",
"main": "index.js",
"bin": "bin/interception-proxy",
"scripts": {
"build": "tsc",
"start": "npm run build && node dist/server.js",
"start": "npm run build && bin/interception-proxy",
"format:check": "prettier . --check",
"format:fix": "prettier . --write",
"lint:check": "eslint",
Expand Down

0 comments on commit 0b2e586

Please sign in to comment.