From 0b2e586bc22200f9a766b5910db69a23488f71db Mon Sep 17 00:00:00 2001 From: Lawrence Forooghian Date: Wed, 24 Jul 2024 16:49:44 +0100 Subject: [PATCH] wip make runnable via npx --- bin/interception-proxy | 3 +++ package.json | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 bin/interception-proxy diff --git a/bin/interception-proxy b/bin/interception-proxy new file mode 100755 index 0000000..d05d5f7 --- /dev/null +++ b/bin/interception-proxy @@ -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"); diff --git a/package.json b/package.json index ed48418..471a5ba 100644 --- a/package.json +++ b/package.json @@ -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",