MCPcopy Index your code
hub / github.com/colbymchenry/codegraph / main

Function main

scripts/npm-shim.js:44–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42});
43
44async function main() {
45 // Happy path: the npm-installed optional dependency. Fall back to a download
46 // when the registry didn't deliver it.
47 var resolved = resolveInstalledBundle() || (await selfHealBundle());
48 var res = childProcess.spawnSync(resolved.command, resolved.args, { stdio: 'inherit', windowsHide: true });
49 if (res.error) {
50 process.stderr.write('codegraph: ' + res.error.message + '\n');
51 process.exit(1);
52 }
53 process.exit(res.status === null ? 1 : res.status);
54}
55
56// Resolve the launcher from the installed per-platform optionalDependency.
57// Returns {command, args} or null if the package isn't installed.

Callers 1

npm-shim.jsFile · 0.70

Calls 3

resolveInstalledBundleFunction · 0.85
selfHealBundleFunction · 0.85
writeMethod · 0.45

Tested by

no test coverage detected