MCPcopy Create free account
hub / github.com/angular/dev-infra / tryGetExecutablePath

Function tryGetExecutablePath

github-actions/saucelabs/set-saucelabs-env.js:19885–19942  ·  view source on GitHub ↗
(filePath, extensions)

Source from the content-addressed store, hash-verified

19883 }
19884 };
19885 var _summary = new Summary();
19886
19887 //
19888 var platform_exports = {};
19889 __export(platform_exports, {
19890 arch: () => arch,
19891 getDetails: () => getDetails,
19892 isLinux: () => isLinux,
19893 isMacOS: () => isMacOS,
19894 isWindows: () => isWindows,
19895 platform: () => platform
19896 });
19897 var import_os2 = __toESM(__require("os"));
19898
19899 //
19900 var import_string_decoder = __require("string_decoder");
19901
19902 //
19903 var os3 = __toESM(__require("os"));
19904 var events = __toESM(__require("events"));
19905 var child = __toESM(__require("child_process"));
19906 var path3 = __toESM(__require("path"));
19907
19908 //
19909 var path2 = __toESM(__require("path"));
19910
19911 //
19912 var fs2 = __toESM(__require("fs"));
19913 var path = __toESM(__require("path"));
19914 var __awaiter2 = function(thisArg, _arguments, P, generator) {
19915 function adopt(value) {
19916 return value instanceof P ? value : new P(function(resolve2) {
19917 resolve2(value);
19918 });
19919 }
19920 return new (P || (P = Promise))(function(resolve2, reject) {
19921 function fulfilled(value) {
19922 try {
19923 step(generator.next(value));
19924 } catch (e) {
19925 reject(e);
19926 }
19927 }
19928 function rejected(value) {
19929 try {
19930 step(generator["throw"](value));
19931 } catch (e) {
19932 reject(e);
19933 }
19934 }
19935 function step(result) {
19936 result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected);
19937 }
19938 step((generator = generator.apply(thisArg, _arguments || [])).next());
19939 });
19940 };
19941 var { chmod, copyFile, lstat, mkdir, open, readdir, rename, rm, rmdir, stat, symlink, unlink } = fs2.promises;
19942 var IS_WINDOWS = process.platform === "win32";

Callers 1

findInPathFunction · 0.70

Calls 2

__awaiter2Function · 0.70
isUnixExecutableFunction · 0.70

Tested by

no test coverage detected