Skip to content

Commit 314b764

Browse files
authored
Merge pull request #567 from 0xadada/ember-cli-3.0-compatability
Fix for #563 Ember 3.0 compatability issue
2 parents 88c6463 + 3a7daca commit 314b764

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lib/build-utilities/migrate-initializers.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,8 @@ function _moveFastBootInitializers(project, rootPath) {
8989
* @param {Object} project
9090
*/
9191
function _migrateAddonInitializers(project) {
92-
const nodeModulesPath = path.join(project.nodeModulesPath);
93-
94-
project.addons.forEach((addon) => {
95-
const currentAddonPath = path.join(nodeModulesPath, addon.name);
92+
project.addons.forEach(addon => {
93+
const currentAddonPath = addon.root;
9694

9795
_checkBrowserInitializers(currentAddonPath);
9896
_moveFastBootInitializers(project, currentAddonPath);

0 commit comments

Comments
 (0)