From 99318cf113d148c6705fd7e28c83aba1fd20ad83 Mon Sep 17 00:00:00 2001 From: jusax23 Date: Tue, 8 Nov 2022 15:51:21 +0100 Subject: [PATCH] fix --- package-lock.json | 3 +++ package.json | 1 + upload.js | 2 ++ 3 files changed, 6 insertions(+) mode change 100644 => 100755 upload.js 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";