We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1612f3e commit 61e1732Copy full SHA for 61e1732
packages/angular-cli/blueprints/pipe/index.js
@@ -75,8 +75,8 @@ module.exports = {
75
const fileName = stringUtils.dasherize(`${options.entity.name}.pipe`);
76
const fullGeneratePath = path.join(this.project.root, this.generatePath);
77
const moduleDir = path.parse(this.pathToModule).dir;
78
- const relativeDir = path.relative(moduleDir, fullGeneratePath);
79
- const importPath = relativeDir ? `./${relativeDir}/${fileName}` : `./${fileName}`.toLowerCase();
+ const relativeDir = path.relative(moduleDir, fullGeneratePath).toLowerCase();
+ const importPath = relativeDir ? `./${relativeDir}/${fileName}` : `./${fileName}`;
80
81
if (!options['skip-import']) {
82
returns.push(
0 commit comments