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 { fetchNewEvents } = require('./api');
|
||||||
const { collectHooks, runHook } = require('./hooks');
|
const { collectHooks, runHook } = require('./hooks');
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,9 @@
|
||||||
"name": "syncthing-hooks",
|
"name": "syncthing-hooks",
|
||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
"bin": {
|
||||||
|
"syncthing-hooks": "index.js"
|
||||||
|
},
|
||||||
"license": "The Unlicense",
|
"license": "The Unlicense",
|
||||||
"prettier": {
|
"prettier": {
|
||||||
"semi": true,
|
"semi": true,
|
||||||
|
|
Loading…
Reference in a new issue