( target: workspaces.TargetDefinition, skipBaseOptions = false, )
| 144 | } |
| 145 | |
| 146 | export function* allTargetOptions( |
| 147 | target: workspaces.TargetDefinition, |
| 148 | skipBaseOptions = false, |
| 149 | ): Iterable<[string | undefined, Record<string, json.JsonValue | undefined>]> { |
| 150 | if (!skipBaseOptions && target.options) { |
| 151 | yield [undefined, target.options]; |
| 152 | } |
| 153 | |
| 154 | if (!target.configurations) { |
| 155 | return; |
| 156 | } |
| 157 | |
| 158 | for (const [name, options] of Object.entries(target.configurations)) { |
| 159 | if (options !== undefined) { |
| 160 | yield [name, options]; |
| 161 | } |
| 162 | } |
| 163 | } |
no test coverage detected