Fix bug in cli preventing npm-only run
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded

This commit is contained in:
TheThing 2023-10-31 08:41:03 +00:00
parent 264364a152
commit 18f9806135
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ cli.parseOptions(args)
}) })
.catch(function(err) { showErrorAndExit('Unknown error while processing arguments', err) }) .catch(function(err) { showErrorAndExit('Unknown error while processing arguments', err) })
.then(function() { .then(function() {
if (!cli.files.length) { if (!cli.files.length && cli.run === 'test') {
showErrorAndExit('No files were found with pattern', cli.targets.join(',')) showErrorAndExit('No files were found with pattern', cli.targets.join(','))
} }

View file

@ -1,6 +1,6 @@
{ {
"name": "eltro", "name": "eltro",
"version": "1.4.1", "version": "1.4.2",
"description": "Eltro is a tiny no-dependancy test framework for node", "description": "Eltro is a tiny no-dependancy test framework for node",
"main": "index.mjs", "main": "index.mjs",
"scripts": { "scripts": {