From 18f98061359ef83ff93c5976cb2e1503ad11d2b3 Mon Sep 17 00:00:00 2001 From: TheThing Date: Tue, 31 Oct 2023 08:41:03 +0000 Subject: [PATCH] Fix bug in cli preventing npm-only run --- cli.mjs | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cli.mjs b/cli.mjs index c59920a..174b2ae 100644 --- a/cli.mjs +++ b/cli.mjs @@ -54,7 +54,7 @@ cli.parseOptions(args) }) .catch(function(err) { showErrorAndExit('Unknown error while processing arguments', err) }) .then(function() { - if (!cli.files.length) { + if (!cli.files.length && cli.run === 'test') { showErrorAndExit('No files were found with pattern', cli.targets.join(',')) } diff --git a/package.json b/package.json index 1d24e3b..9ac95fd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eltro", - "version": "1.4.1", + "version": "1.4.2", "description": "Eltro is a tiny no-dependancy test framework for node", "main": "index.mjs", "scripts": {