@private @method _checkInRepoAddonExists @param {Object} options
(options)
| 423 | @param {Object} options |
| 424 | */ |
| 425 | _checkInRepoAddonExists(options) { |
| 426 | let addon; |
| 427 | |
| 428 | if (options.inRepoAddon) { |
| 429 | addon = findAddonByName(this.project, options.inRepoAddon); |
| 430 | |
| 431 | if (!addon) { |
| 432 | throw new SilentError( |
| 433 | `You specified the 'in-repo-addon' flag, but the ` + |
| 434 | `in-repo-addon '${options.inRepoAddon}' does not exist. Please check the name and try again.` |
| 435 | ); |
| 436 | } |
| 437 | } |
| 438 | |
| 439 | if (options.in) { |
| 440 | if (!ensureTargetDirIsAddon(options.in)) { |
| 441 | throw new SilentError( |
| 442 | `You specified the 'in' flag, but the ` + |
| 443 | `in repo addon '${options.in}' does not exist. Please check the name and try again.` |
| 444 | ); |
| 445 | } |
| 446 | } |
| 447 | }, |
| 448 | |
| 449 | /** |
| 450 | @private |
nothing calls this directly
no test coverage detected
searching dependent graphs…