diff --git a/index.js b/index.js index e938049..d6eff11 100755 --- a/index.js +++ b/index.js @@ -1,3 +1,5 @@ +#!/usr/bin/env node + const { fetchNewEvents } = require('./api'); const { collectHooks, runHook } = require('./hooks'); diff --git a/package.json b/package.json index 58db71b..f5ee886 100644 --- a/package.json +++ b/package.json @@ -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,