@@ -2,7 +2,6 @@ var path = require('path');
22var chalk = require ( 'chalk' ) ;
33var Blueprint = require ( 'ember-cli/lib/models/blueprint' ) ;
44var dynamicPathParser = require ( '../../utilities/dynamic-path-parser' ) ;
5- var addBarrelRegistration = require ( '../../utilities/barrel-management' ) ;
65var getFiles = Blueprint . prototype . files ;
76const stringUtils = require ( 'ember-cli-string-utils' ) ;
87const astUtils = require ( '../../utilities/ast-utils' ) ;
@@ -65,12 +64,6 @@ module.exports = {
6564 files : function ( ) {
6665 var fileList = getFiles . call ( this ) ;
6766
68- if ( this . options && this . options . flat ) {
69- fileList = fileList . filter ( p => p . indexOf ( 'index.ts' ) <= 0 ) ;
70- }
71- if ( this . options && ! this . options . route ) {
72- fileList = fileList . filter ( p => p . indexOf ( path . join ( 'shared' , 'index.ts' ) ) <= 0 ) ;
73- }
7467 if ( this . options && this . options . inlineTemplate ) {
7568 fileList = fileList . filter ( p => p . indexOf ( '.html' ) < 0 ) ;
7669 }
@@ -127,12 +120,6 @@ module.exports = {
127120 const componentDir = path . relative ( this . dynamicPath . appRoot , this . generatePath ) ;
128121 const importPath = componentDir ? `./${ componentDir } /${ fileName } ` : `./${ fileName } ` ;
129122
130- if ( ! options . flat ) {
131- returns . push ( addBarrelRegistration ( this , componentDir ) ) ;
132- } else {
133- returns . push ( addBarrelRegistration ( this , componentDir , fileName ) ) ;
134- }
135-
136123 if ( ! options [ 'skip-import' ] ) {
137124 returns . push (
138125 astUtils . addComponentToModule ( modulePath , className , importPath )
0 commit comments