MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / bundleExists

Function bundleExists

__tests__/upgrade.test.ts:31–33  ·  view source on GitHub ↗
(present: Set<string>)

Source from the content-addressed store, hash-verified

29describe('detectInstallMethod', () => {
30 // A bundle exists if a vendored node + launcher sit next to lib/.
31 function bundleExists(present: Set<string>) {
32 return (p: string) => present.has(p.replace(/\\/g, '/'));
33 }
34
35 it('detects a unix bundle and derives the install dir from the versions/ layout', () => {
36 const root = '/home/u/.codegraph/versions/v0.9.9';

Callers 1

upgrade.test.tsFile · 0.85

Calls 1

hasMethod · 0.80

Tested by

no test coverage detected