( entry: TsdownInputOption, cwd: string, root?: string, )
| 41 | } |
| 42 | |
| 43 | export function toObjectEntry( |
| 44 | entry: TsdownInputOption, |
| 45 | cwd: string, |
| 46 | root?: string, |
| 47 | ): Promise<[entry: Record<string, string>, root: string]> { |
| 48 | if (typeof entry === 'string') { |
| 49 | entry = [entry] |
| 50 | } |
| 51 | |
| 52 | if (!Array.isArray(entry)) { |
| 53 | return resolveObjectEntry(entry, cwd) |
| 54 | } |
| 55 | return resolveArrayEntry(entry, cwd, root) |
| 56 | } |
| 57 | |
| 58 | export function isGlobEntry(entry: TsdownInputOption | undefined): boolean { |
| 59 | if (!entry) return false |
no test coverage detected
searching dependent graphs…