From ef4aefd3e91b365ac574ce9814ebc64eea7036f7 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Sun, 19 Jul 2020 11:13:17 +0200 Subject: [PATCH] require keywords --- ci.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ci.js b/ci.js index 5787169..8bbd4ba 100644 --- a/ci.js +++ b/ci.js @@ -57,6 +57,11 @@ else { ok = false; } +if (!Array.isArray(pkg.keywords) || pkg.keywords.length < 1) { + console.log ('keywords empty'); + ok = false; +} + function major (version) { return version.replace (/\.[0-9x]+$/ui, ''); }