Skip to content

Commit

Permalink
Add additional TreeType's from ember-cli.
Browse files Browse the repository at this point in the history
Most of these don't _really_ matter to us, but added these additional
tree types for completeness.
  • Loading branch information
rwjblue committed Dec 11, 2020
1 parent bb41632 commit 4778225
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ember-auto-import/ts/analyzer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ makeDebug.formatters.m = (modules: Import[]) => {

const debug = makeDebug('ember-auto-import:analyzer');

export type TreeType = 'app' | 'addon' | 'addon-test-support' | 'test';
export type TreeType = 'app' | 'addon' | 'addon-templates' | 'addon-test-support' | 'styles' | 'templates' | 'test';

export interface Import {
path: string;
Expand Down
3 changes: 3 additions & 0 deletions packages/ember-auto-import/ts/bundle-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ export default class BundleConfig {
switch (treeType) {
case 'app':
case 'addon':
case 'addon-templates':
case 'styles':
case 'templates':
return 'app';

case 'addon-test-support':
Expand Down

0 comments on commit 4778225

Please sign in to comment.