(deps: SlicerDeps, rel: string)
| 48 | } |
| 49 | |
| 50 | async function readFile(deps: SlicerDeps, rel: string): Promise<string | null> { |
| 51 | const abs = path.join(deps.cwd, rel); |
| 52 | if (deps.read) return deps.read(abs); |
| 53 | try { return await fs.readFile(abs, 'utf-8'); } catch { return null; } |
| 54 | } |
| 55 | |
| 56 | /** Is this chunk a type-like declaration worth pulling as a dependency? */ |
| 57 | function isTypeChunk(symbol: string | undefined, file: string): boolean { |
no outgoing calls
no test coverage detected