Skip to content

Commit 6d37ffc

Browse files
alan-agius4clydin
authored andcommitted
refactor(@angular/cli): replace longDescription line endings with \n
Needed to fix Windows CI
1 parent df6ec4d commit 6d37ffc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ export abstract class CommandModule<T extends {} = {}> implements CommandModuleI
9292
longDescriptionRelativePath: path
9393
.relative(path.join(__dirname, '../../../../'), this.longDescriptionPath)
9494
.replace(/\\/g, path.posix.sep),
95-
longDescription: readFileSync(this.longDescriptionPath, 'utf8'),
95+
longDescription: readFileSync(this.longDescriptionPath, 'utf8').replace(
96+
/\r\n/g,
97+
'\n',
98+
),
9699
}
97100
: {}),
98101
};

0 commit comments

Comments
 (0)