Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async which(command: string, { PATH = process.env.PATH }: WhichOptions = {}): Promise {
return which(command, { PATH: this.alterPath(PATH || '') });
}
export async function findNativeRun(): Promise {
try {
return await which('native-run');
} catch (e) {
if (e.code !== 'ENOENT') {
throw e;
}
}
}