Skip to content

Commit 09b93a4

Browse files
committed
fixes
1 parent 64e282d commit 09b93a4

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

ts/addon.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,10 @@ module.exports = {
2828
// This won't be necessary in 2.x if we shift to adding the blueprints addon as a host
2929
// dependency on install.
3030
if (this.project.addons.includes(this)) {
31-
// index of 'ember-cli-typescript'
32-
const ecliTsIndex = this.project.addons.map(a => a.name).indexOf('ember-cli-typescript');
33-
// index of 'ember-cli-typescript-blueprints'
34-
const ecliTsBlueprintIndex = this.project.addons.map(a => a.name).indexOf('ember-cli-typescript-blueprints');
35-
// move 'ember-cli-typescript-blueprints' from its current position, to immediately after 'ember-cli-typescript'
3631
this.project.addons.splice(
37-
ecliTsIndex + 1,
32+
this.project.addons.indexOf(this) + 1,
3833
0,
39-
this.project.addons[ecliTsBlueprintIndex]);
40-
this.project.addons.splice(ecliTsBlueprintIndex + 1, 1);
34+
this.addons.find(addon => addon.name === 'ember-cli-typescript-blueprints'));
4135
}
4236

4337
if (this.project.isEmberCLIAddon()) {

0 commit comments

Comments
 (0)