Register script as binary

This commit is contained in:
Lynn Smeria 2020-03-18 19:59:53 +02:00
parent 5e71de7f55
commit 07efd9b015
2 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,5 @@
#!/usr/bin/env node
const { fetchNewEvents } = require('./api');
const { collectHooks, runHook } = require('./hooks');

View file

@ -2,6 +2,9 @@
"name": "syncthing-hooks",
"version": "0.0.0",
"main": "index.js",
"bin": {
"syncthing-hooks": "index.js"
},
"license": "The Unlicense",
"prettier": {
"semi": true,