Skip to content

Commit 6a23bf6

Browse files
committed
Document blueprint hax
1 parent a176a40 commit 6a23bf6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ module.exports = {
1212
init() {
1313
this._super.init.apply(this, arguments);
1414

15+
// If we're a direct dependency of the app, we cheat and add our instance of the blueprints
16+
// addon to the project, as only top-level addons contribute blueprints.
17+
// This won't be necessary in 2.x if we shift to adding the blueprints addon as a host
18+
// dependency on install.
1519
if (this.project.addons.includes(this)) {
1620
this.project.addons.push(this.addons.find(addon => addon.name === 'ember-cli-typescript-blueprints'));
1721
}

0 commit comments

Comments
 (0)