@@ -185,11 +185,17 @@ module.exports = {
185185 ] . filter ( Boolean ) ) ;
186186 } ,
187187
188- treeForPublic ( ) {
189- let parentAddon = this . parent . findAddonByName ( this . parent . name ( ) ) ;
190- let defaultTree = this . _super . treeForPublic . apply ( this , arguments ) ;
188+ getBroccoliBridge ( ) {
189+ if ( ! this . _broccoliBridge ) {
190+ const Bridge = require ( 'broccoli-bridge' ) ;
191+ this . _broccoliBridge = new Bridge ( ) ;
192+ }
193+ return this . _broccoliBridge ;
194+ } ,
191195
192- if ( ! parentAddon ) { return defaultTree ; }
196+ postprocessTree ( type , tree ) {
197+ let parentAddon = this . parent . findAddonByName ( this . parent . name ( ) ) ;
198+ if ( ! parentAddon || type !== 'all' ) { return tree ; }
193199
194200 let PluginRegistry = require ( './lib/models/plugin-registry' ) ;
195201 let DocsCompiler = require ( './lib/broccoli/docs-compiler' ) ;
@@ -227,15 +233,7 @@ module.exports = {
227233 config : this . project . config ( EmberApp . env ( ) )
228234 } ) ;
229235
230- return new MergeTrees ( [ defaultTree , docsTree , searchIndexTree ] ) ;
231- } ,
232-
233- getBroccoliBridge ( ) {
234- if ( ! this . _broccoliBridge ) {
235- const Bridge = require ( 'broccoli-bridge' ) ;
236- this . _broccoliBridge = new Bridge ( ) ;
237- }
238- return this . _broccoliBridge ;
236+ return new MergeTrees ( [ tree , docsTree , searchIndexTree ] ) ;
239237 } ,
240238
241239 _lunrTree ( ) {
0 commit comments