Skip to content

Commit 61e1732

Browse files
authored
Update index.js
1 parent 1612f3e commit 61e1732

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ module.exports = {
7575
const fileName = stringUtils.dasherize(`${options.entity.name}.pipe`);
7676
const fullGeneratePath = path.join(this.project.root, this.generatePath);
7777
const moduleDir = path.parse(this.pathToModule).dir;
78-
const relativeDir = path.relative(moduleDir, fullGeneratePath);
79-
const importPath = relativeDir ? `./${relativeDir}/${fileName}` : `./${fileName}`.toLowerCase();
78+
const relativeDir = path.relative(moduleDir, fullGeneratePath).toLowerCase();
79+
const importPath = relativeDir ? `./${relativeDir}/${fileName}` : `./${fileName}`;
8080

8181
if (!options['skip-import']) {
8282
returns.push(

0 commit comments

Comments
 (0)