Register script as binary
This commit is contained in:
parent
5e71de7f55
commit
07efd9b015
2
index.js
2
index.js
|
@ -1,3 +1,5 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
const { fetchNewEvents } = require('./api');
|
||||
const { collectHooks, runHook } = require('./hooks');
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue