diff --git a/package-lock.json b/package-lock.json index 07e8072..4307b75 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,6 +12,9 @@ "form-data": "^4.0.0", "node-fetch": "^3.2.10", "path": "^0.12.7" + }, + "bin": { + "gitea-release": "upload.js" } }, "node_modules/asynckit": { diff --git a/package.json b/package.json index affa79d..4ee1b86 100644 --- a/package.json +++ b/package.json @@ -14,6 +14,7 @@ "files": [ "upload.js" ], + "bin": "upload.js", "author": "jusax23", "license": "ISC", "dependencies": { diff --git a/upload.js b/upload.js old mode 100644 new mode 100755 index e8459e0..14ace62 --- a/upload.js +++ b/upload.js @@ -1,3 +1,5 @@ +#!/usr/bin/env node + import fs from "fs"; import fetch from "node-fetch"; import FormData from "form-data";