False positive if there is a folder with the same name as the command in question
Hi there...
I'm trying your module.. But it throws false positives when testing for a command with the same name as a folder at the testing location...
For example..
/myProject
/myFolderName
/anotherFolder
/myCommand <-- folder with the same name as the command.
If I test commandExists('myCommand') inside myProject it will throw true because of the folder with the same name as the command.
Is there a way to ask for the command in a particular location ??
I need to check if myCommand is installed globally in /node_modules/myCommand
@macCesar did this occur on linux on mac for you ?
Hi... I'm testing it on a Mac...
But it needs to work on the 3 main systems.. Linux, Windows and Mac.
Sry it was late :D
I've opened #36 yesterday. the testcase and fix i've added works on linux but the pipeline fails on mac and i'm not too sure why.