MCPcopy Create free account
hub / github.com/di-sukharev/opencommit / applyPreferLocal

Function applyPreferLocal

out/cli.cjs:65942–65949  ·  view source on GitHub ↗
(result, cwdPath)

Source from the content-addressed store, hash-verified

65940 if (preferLocal) {
65941 applyPreferLocal(result, cwdPath);
65942 }
65943 if (addExecPath) {
65944 applyExecPath(result, execPath, cwdPath);
65945 }
65946 return [...result, pathOption].join(import_node_path.default.delimiter);
65947};
65948var applyPreferLocal = (result, cwdPath) => {
65949 let previous;
65950 while (previous !== cwdPath) {
65951 result.push(import_node_path.default.join(cwdPath, "node_modules/.bin"));
65952 previous = cwdPath;

Callers 1

npmRunPathFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected