( commandOptions: Record<string, unknown>, watchMode: boolean )
| 7 | import { stdinName } from './stdin'; |
| 8 | |
| 9 | export default async function loadConfigFromCommand( |
| 10 | commandOptions: Record<string, unknown>, |
| 11 | watchMode: boolean |
| 12 | ): Promise<{ |
| 13 | options: MergedRollupOptions[]; |
| 14 | warnings: BatchWarnings; |
| 15 | }> { |
| 16 | const warnings = batchWarnings(commandOptions); |
| 17 | if (!commandOptions.input && (commandOptions.stdin || !process.stdin.isTTY)) { |
| 18 | commandOptions.input = stdinName; |
| 19 | } |
| 20 | const options = await mergeOptions({ input: [] }, watchMode, commandOptions, warnings.log); |
| 21 | await addCommandPluginsToInputOptions(options, commandOptions); |
| 22 | return { options: [options], warnings }; |
| 23 | } |
no test coverage detected
searching dependent graphs…