ember-cli / ember-cli-htmlbars

MIT License
77 stars 66 forks source link

Fix incorrect ember-source version check #741

Closed simonihmig closed 2 years ago

simonihmig commented 2 years ago

Found this bug in a monorepo setup with multiple apps, where one app was using an older version (3.26, so needed the modules API polyfill) while the others were on 3.28. With most dependencies being hoisted in the central /node_modules, for any addon that depends on ember-cli-htmlbars it would find the wrong ember-source package, namely /node_modules/ember-source (3.28) instead of apps/foo-app/node_modules/ember-source (the correct 3.26 version).

Fixes #687