From e9fce8b18a96721f715fb6f5ce3439224c343565 Mon Sep 17 00:00:00 2001 From: stefanji <408776303@qq.com> Date: Sat, 28 Dec 2019 09:12:55 +0800 Subject: [PATCH] build: compile main.js --- lib/main.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/main.js b/lib/main.js index cac6688..338a359 100644 --- a/lib/main.js +++ b/lib/main.js @@ -38,7 +38,11 @@ function run() { }); let rel = yield github_1.release(config, new github_1.GitHubReleaser(gh)); if (config.input_files) { - util_1.paths(config.input_files).forEach((path) => __awaiter(this, void 0, void 0, function* () { + const files = util_1.paths(config.input_files); + if (files.length == 0) { + console.warn(`🤔 ${config.input_files} not include valid file.`); + } + files.forEach((path) => __awaiter(this, void 0, void 0, function* () { yield github_1.upload(gh, rel.upload_url, path); })); }