Skip to content

Commit

Permalink
fastBootDependencies => fastbootDependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelly Selden committed Oct 13, 2016
1 parent 358392c commit 99e9433
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
17 changes: 14 additions & 3 deletions lib/broccoli/fastboot-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ FastBootConfig.prototype.buildDependencies = function() {
var ui = this.ui;

eachAddonPackage(this.project, function(pkg) {
var deps = getFastBootDependencies(pkg);
var deps = getFastBootDependencies(pkg, ui);

if (deps) {
deps.forEach(function(dep) {
Expand Down Expand Up @@ -185,8 +185,19 @@ function eachAddonPackage(project, cb) {
});
}

function getFastBootDependencies(pkg) {
return pkg['ember-addon'] && pkg['ember-addon'].fastBootDependencies;
function getFastBootDependencies(pkg, ui) {
var addon = pkg['ember-addon'];
if (!addon) {
return addon;
}

var deps = addon.fastBootDependencies;
if (deps) {
ui.writeDeprecateLine('ember-addon.fastBootDependencies has been replaced with ember-addon.fastbootDependencies [addon: ' + pkg.name + ']');
return deps;
}

return addon.fastbootDependencies;
}

function getDependencyVersion(pkg, dep) {
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 99e9433

Please sign in to comment.