Fix bug in cli preventing npm-only run
continuous-integration/appveyor/branch AppVeyor build succeeded Details

master v1.4.2
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) })
.then(function() {
if (!cli.files.length) {
if (!cli.files.length && cli.run === 'test') {
showErrorAndExit('No files were found with pattern', cli.targets.join(','))
}

View File

@ -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": {