From 07efd9b0152fa5cbd5df2f8619fb987b1e92f80e Mon Sep 17 00:00:00 2001 From: Lynn Smeria Date: Wed, 18 Mar 2020 19:59:53 +0200 Subject: [PATCH] Register script as binary --- index.js | 2 ++ package.json | 3 +++ 2 files changed, 5 insertions(+) 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,