MCPcopy Create free account
hub / github.com/ember-cli/ember-cli / findAddonByName

Function findAddonByName

lib/models/blueprint.js:1680–1688  ·  view source on GitHub ↗
(addonOrProject, name)

Source from the content-addressed store, hash-verified

1678}
1679
1680function findAddonByName(addonOrProject, name) {
1681 let addon = addonOrProject.addons.find((addon) => addon.name === name);
1682
1683 if (addon) {
1684 return addon;
1685 }
1686
1687 return addonOrProject.addons.find((addon) => findAddonByName(addon, name));
1688}
1689
1690function ensureTargetDirIsAddon(addonPath) {
1691 let projectInfo;

Callers 2

_checkInRepoAddonExistsFunction · 0.85
__root__Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…