@@ -5,7 +5,7 @@ import Package from './package';
5
5
import { buildDebugCallback } from 'broccoli-debug' ;
6
6
import BundleConfig from './bundle-config' ;
7
7
import Append from './broccoli-append' ;
8
- import { Tree } from 'broccoli-plugin ' ;
8
+ import { Node } from 'broccoli-node-api ' ;
9
9
10
10
const debugTree = buildDebugCallback ( 'ember-auto-import' ) ;
11
11
const protocol = '__ember_auto_import_protocol_v1__' ;
@@ -52,7 +52,7 @@ export default class AutoImport {
52
52
return this . primaryPackage === appOrAddon ;
53
53
}
54
54
55
- analyze ( tree : Tree , appOrAddon : any ) {
55
+ analyze ( tree : Node , appOrAddon : any ) {
56
56
let pack = Package . lookup ( appOrAddon ) ;
57
57
this . packages . add ( pack ) ;
58
58
let analyzer = new Analyzer (
@@ -63,7 +63,7 @@ export default class AutoImport {
63
63
return analyzer ;
64
64
}
65
65
66
- makeBundler ( allAppTree : Tree ) {
66
+ makeBundler ( allAppTree : Node ) {
67
67
// The Splitter takes the set of imports from the Analyzer and
68
68
// decides which ones to include in which bundles
69
69
let splitter = new Splitter ( {
@@ -83,7 +83,7 @@ export default class AutoImport {
83
83
} ) ;
84
84
}
85
85
86
- addTo ( allAppTree : Tree ) {
86
+ addTo ( allAppTree : Node ) {
87
87
let bundler = debugTree ( this . makeBundler ( allAppTree ) , 'output' ) ;
88
88
89
89
let mappings = new Map ( ) ;
@@ -121,7 +121,7 @@ export default class AutoImport {
121
121
// So we are forced to monkey patch EmberApp. We insert ourselves right at
122
122
// the beginning of addonPostprocessTree.
123
123
let original = host . addonPostprocessTree . bind ( host ) ;
124
- host . addonPostprocessTree = ( which : string , tree : Tree ) => {
124
+ host . addonPostprocessTree = ( which : string , tree : Node ) => {
125
125
if ( which === 'all' ) {
126
126
tree = this . addTo ( tree ) ;
127
127
}
0 commit comments