File tree 3 files changed +3
-3
lines changed
packages/angular-cli/blueprints
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ module.exports = {
125
125
const className = stringUtils . classify ( `${ options . entity . name } Component` ) ;
126
126
const fileName = stringUtils . dasherize ( `${ options . entity . name } .component` ) ;
127
127
const componentDir = path . relative ( path . dirname ( this . pathToModule ) , this . generatePath ) ;
128
- const importPath = componentDir ? `./${ componentDir } /${ fileName } ` : `./${ fileName } ` ;
128
+ const importPath = componentDir ? `./${ componentDir } /${ fileName } ` : `./${ fileName } ` . toLowerCase ( ) ;
129
129
130
130
if ( ! options [ 'skip-import' ] ) {
131
131
returns . push (
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ module.exports = {
88
88
const fullGeneratePath = path . join ( this . project . root , this . generatePath ) ;
89
89
const moduleDir = path . parse ( this . pathToModule ) . dir ;
90
90
const relativeDir = path . relative ( moduleDir , fullGeneratePath ) ;
91
- const importPath = relativeDir ? `./${ relativeDir } /${ fileName } ` : `./${ fileName } ` ;
91
+ const importPath = relativeDir ? `./${ relativeDir } /${ fileName } ` : `./${ fileName } ` . toLowerCase ( ) ;
92
92
93
93
if ( ! options [ 'skip-import' ] ) {
94
94
returns . push (
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ module.exports = {
76
76
const fullGeneratePath = path . join ( this . project . root , this . generatePath ) ;
77
77
const moduleDir = path . parse ( this . pathToModule ) . dir ;
78
78
const relativeDir = path . relative ( moduleDir , fullGeneratePath ) ;
79
- const importPath = relativeDir ? `./${ relativeDir } /${ fileName } ` : `./${ fileName } ` ;
79
+ const importPath = relativeDir ? `./${ relativeDir } /${ fileName } ` : `./${ fileName } ` . toLowerCase ( ) ;
80
80
81
81
if ( ! options [ 'skip-import' ] ) {
82
82
returns . push (
You can’t perform that action at this time.
0 commit comments