MCPcopy Index your code
hub / github.com/ember-cli/ember-cli / findAddons

Method findAddons

lib/models/host-info-cache.js:119–136  ·  view source on GitHub ↗
(currentPkgInfo)

Source from the content-addressed store, hash-verified

117 this._bundledPackageInfoCache.set(pkgInfoToStartAt, pkgInfos);
118
119 let findAddons = (currentPkgInfo) => {
120 if (!currentPkgInfo.valid || !currentPkgInfo.addonMainPath) {
121 return;
122 }
123
124 if (pkgInfos.has(currentPkgInfo)) {
125 return;
126 }
127
128 if (currentPkgInfo.isForBundleHost()) {
129 return;
130 }
131
132 pkgInfos.add(currentPkgInfo);
133
134 let addonPackageList = currentPkgInfo.discoverAddonAddons();
135 addonPackageList.forEach((pkgInfo) => findAddons(pkgInfo));
136 };
137
138 let addonPackageList = pkgInfoToStartAt.project
139 ? pkgInfoToStartAt.discoverProjectAddons()

Callers

nothing calls this directly

Calls 3

isForBundleHostMethod · 0.80
discoverAddonAddonsMethod · 0.80
hasMethod · 0.45

Tested by

no test coverage detected