MCPcopy Index your code
hub / github.com/vercel/ncc / hasPath

Function hasPath

test/cli.js:126–128  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

124 const map = JSON.parse(fs.readFileSync(join('tmp', 'index.js.map'), 'utf8'));
125 const paths = map.sources.map(source=>pathResolve(join('tmp', source)));
126 function hasPath(path) {
127 return paths.includes(pathResolve(path));
128 }
129 return code === 0 && hasPath('test/fixtures/sourcemap-resource-path/index.ts') && hasPath('test/fixtures/sourcemap-resource-path/sum.ts');
130 }
131 },

Callers 1

expectFunction · 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…