(libDistDir: string, sentinel: string)
| 45 | // Write a fake compiled library that exports a sentinel, at the given lib/dist |
| 46 | // root (used both for the platform package and the self-heal cache bundle). |
| 47 | function writeFakeLib(libDistDir: string, sentinel: string): void { |
| 48 | fs.mkdirSync(libDistDir, { recursive: true }); |
| 49 | fs.writeFileSync( |
| 50 | path.join(libDistDir, 'index.js'), |
| 51 | `module.exports = { SENTINEL: ${JSON.stringify(sentinel)}, CodeGraph: function CodeGraph() {} };\n` |
| 52 | ); |
| 53 | } |
| 54 | |
| 55 | function installPlatformPackage(root: string, sentinel: string): void { |
| 56 | const pkgRoot = path.join(root, 'node_modules', '@colbymchenry', `codegraph-${target}`); |
no test coverage detected