* GitHub tarballs add a `<owner>-<repo>-<sha>/` prefix to all paths.
(filePath: string)
| 142 | * GitHub tarballs add a `<owner>-<repo>-<sha>/` prefix to all paths. |
| 143 | */ |
| 144 | function stripFirstComponent(filePath: string): string | null { |
| 145 | const idx = filePath.indexOf('/') |
| 146 | if (idx === -1) return null |
| 147 | return filePath.slice(idx + 1) |
| 148 | } |
| 149 | |
| 150 | export type PackageManager = 'npm' | 'pnpm' | 'yarn' | 'bun' | 'deno' |
| 151 |
no test coverage detected