MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / npmRunPathEnv

Function npmRunPathEnv

out/cli.cjs:65954–65960  ·  view source on GitHub ↗
({ env: env2 = import_node_process4.default.env, ...options } = {})

Source from the content-addressed store, hash-verified

65952 previous = cwdPath;
65953 cwdPath = import_node_path.default.resolve(cwdPath, "..");
65954 }
65955};
65956var applyExecPath = (result, execPath, cwdPath) => {
65957 const execPathString = execPath instanceof URL ? (0, import_node_url.fileURLToPath)(execPath) : execPath;
65958 result.push(import_node_path.default.resolve(cwdPath, execPathString, ".."));
65959};
65960var npmRunPathEnv = ({ env: env2 = import_node_process4.default.env, ...options } = {}) => {
65961 env2 = { ...env2 };
65962 const pathName = pathKey({ env: env2 });
65963 options.path = env2[pathName];

Callers 1

getEnvFunction · 0.85

Calls 2

pathKeyFunction · 0.85
npmRunPathFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…