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