Skip to content

Commit a6d78a9

Browse files
committed
refactor(@angular/cli): always use posix separator in longDescriptionRelativePath
Needed for consistency that will fix a Windows CI failure
1 parent a517160 commit a6d78a9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/angular/cli/src/command-builder/command-module.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,9 @@ export abstract class CommandModule<T extends {} = {}> implements CommandModuleI
8989
describe: this.describe,
9090
...(this.longDescriptionPath
9191
? {
92-
longDescriptionRelativePath: path.relative(
93-
path.join(__dirname, '../../../../'),
94-
this.longDescriptionPath,
95-
),
92+
longDescriptionRelativePath: path
93+
.relative(path.join(__dirname, '../../../../'), this.longDescriptionPath)
94+
.replace(/\\/g, path.posix.sep),
9695
longDescription: readFileSync(this.longDescriptionPath, 'utf8'),
9796
}
9897
: {}),

0 commit comments

Comments
 (0)