MCPcopy Index your code
hub / github.com/nodejs/corepack / remapPath

Function remapPath

mkshims.ts:62–62  ·  view source on GitHub ↗
(p: string)

Source from the content-addressed store, hash-verified

60 // Last note: cmdShim generates shims with relative paths, so it doesn't matter
61 // that the target files don't truly exist, as long as we mock the `stat` function.
62 const remapPath = (p: string) => path.resolve(__dirname, path.relative(virtualNodewinDir, p));
63
64 const easyStatFs = Object.assign(Object.create(fs), {
65 readFile: (p: string, encoding: BufferEncoding, cb: (err: any, str: string) => void) => fs.readFile(remapPath(p), encoding, cb),

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…