Skip to content

Commit bd26d02

Browse files
committed
feat: allow using npx easily
- Without this change, `npx local-webhooks` would throw error `could not determine executable to run`. - Adding a `bin` entry in `package.json` that is the same name as the package fixes this. Hence by default, `lw-client` is invoked. - See https://docs.npmjs.com/cli/v9/commands/npx?v=true
1 parent d6ad2d8 commit bd26d02

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

package-lock.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"test:lint": "eslint src/"
2020
},
2121
"bin": {
22+
"local-webhooks": "bin/lw-client",
2223
"lw-client": "bin/lw-client",
2324
"lw-server": "bin/lw-server"
2425
},

0 commit comments

Comments
 (0)