holepunchto / bare-dev

Development tooling for Bare
Apache License 2.0
8 stars 2 forks source link

Replace which dependency with bare-which #10

Closed jkcdarunday closed 7 months ago

jkcdarunday commented 7 months ago

Right now, importing bare-dev in Bare-based projects causes an error due to the which dependency requiring various node packages.

Even with aliases applied, the isexe dependency of which uses functions that are currently not supported by bare-process such as process.getuid(), process.getgid(), process.getgroup()

This change switches the which dependency to bare-which as it is cross compatible with bare and node and uses fs.constants.X_OK to check for executability on posix-based systems instead of using the unsupported the functions above.