MCPcopy
hub / github.com/colbymchenry/codegraph / installPlatformPackage

Function installPlatformPackage

__tests__/npm-sdk.test.ts:55–62  ·  view source on GitHub ↗
(root: string, sentinel: string)

Source from the content-addressed store, hash-verified

53}
54
55function installPlatformPackage(root: string, sentinel: string): void {
56 const pkgRoot = path.join(root, 'node_modules', '@colbymchenry', `codegraph-${target}`);
57 writeFakeLib(path.join(pkgRoot, 'lib', 'dist'), sentinel);
58 fs.writeFileSync(
59 path.join(pkgRoot, 'package.json'),
60 JSON.stringify({ name: `@colbymchenry/codegraph-${target}`, version: VERSION }) + '\n'
61 );
62}
63
64// require() the SDK in a child process so each case gets a fresh module cache.
65function requireSdk(mainPkg: string, env: Record<string, string> = {}) {

Callers 1

npm-sdk.test.tsFile · 0.85

Calls 2

writeFakeLibFunction · 0.85
joinMethod · 0.80

Tested by

no test coverage detected