Skip to content

Commit 4862680

Browse files
authored
Update index.js
1 parent 24c7308 commit 4862680

File tree

1 file changed

+2
-2
lines changed
  • packages/angular-cli/blueprints/component

1 file changed

+2
-2
lines changed

packages/angular-cli/blueprints/component/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ module.exports = {
124124
const returns = [];
125125
const className = stringUtils.classify(`${options.entity.name}Component`);
126126
const fileName = stringUtils.dasherize(`${options.entity.name}.component`);
127-
const componentDir = path.relative(path.dirname(this.pathToModule), this.generatePath);
128-
const importPath = componentDir ? `./${componentDir}/${fileName}` : `./${fileName}`.toLowerCase();
127+
const componentDir = path.relative(path.dirname(this.pathToModule), this.generatePath).toLowerCase();
128+
const importPath = componentDir ? `./${componentDir}/${fileName}` : `./${fileName}`;
129129

130130
if (!options['skip-import']) {
131131
returns.push(

0 commit comments

Comments
 (0)