(root: string, sentinel: string)
| 53 | } |
| 54 | |
| 55 | function 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. |
| 65 | function requireSdk(mainPkg: string, env: Record<string, string> = {}) { |
no test coverage detected