We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4862680 commit 1612f3eCopy full SHA for 1612f3e
packages/angular-cli/blueprints/directive/index.js
@@ -87,8 +87,8 @@ module.exports = {
87
const fileName = stringUtils.dasherize(`${options.entity.name}.directive`);
88
const fullGeneratePath = path.join(this.project.root, this.generatePath);
89
const moduleDir = path.parse(this.pathToModule).dir;
90
- const relativeDir = path.relative(moduleDir, fullGeneratePath);
91
- const importPath = relativeDir ? `./${relativeDir}/${fileName}` : `./${fileName}`.toLowerCase();
+ const relativeDir = path.relative(moduleDir, fullGeneratePath).toLowerCase();
+ const importPath = relativeDir ? `./${relativeDir}/${fileName}` : `./${fileName}`;
92
93
if (!options['skip-import']) {
94
returns.push(
0 commit comments