( inputOptions: InputOptionsWithPlugins, command: Record<string, unknown> )
| 6 | import { waitForInputPlugin } from './waitForInput'; |
| 7 | |
| 8 | export async function addCommandPluginsToInputOptions( |
| 9 | inputOptions: InputOptionsWithPlugins, |
| 10 | command: Record<string, unknown> |
| 11 | ): Promise<void> { |
| 12 | if (command.stdin !== false) { |
| 13 | inputOptions.plugins.push(stdinPlugin(command.stdin)); |
| 14 | } |
| 15 | if (command.waitForBundleInput === true) { |
| 16 | inputOptions.plugins.push(waitForInputPlugin()); |
| 17 | } |
| 18 | await addPluginsFromCommandOption(command.plugin, inputOptions); |
| 19 | } |
| 20 | |
| 21 | export async function addPluginsFromCommandOption( |
| 22 | commandPlugin: unknown, |
no test coverage detected
searching dependent graphs…