mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: fix docs generation highlight files task (#6285)
Recently with https://github.com/angular/material2/commit/edcbb24f11ae776b94d97634ae91e9175ffd6f8a the ambigious variable `path` has been renamed to `filePath`, but there is one remaining instance of `path` that didn't get updated. This currently causes the docs-content CI job to fail.
This commit is contained in:
committed by
mmalerba
parent
509e3e90f5
commit
48d092093d
@@ -110,7 +110,7 @@ task('highlight-examples', () => {
|
||||
// rename files to fit format: [filename]-[filetype].html
|
||||
const renameFile = (filePath: any) => {
|
||||
const extension = filePath.extname.slice(1);
|
||||
filePath.basename = `${path.basename}-${extension}`;
|
||||
filePath.basename = `${filePath.basename}-${extension}`;
|
||||
};
|
||||
|
||||
return src('src/material-examples/**/*.+(html|css|ts)')
|
||||
|
||||
Reference in New Issue
Block a user