Skip to content

Commit 6457ff2

Browse files
committed
fix(tools): windows paths
1 parent eb644e0 commit 6457ff2

File tree

1 file changed

+1
-1
lines changed
  • tools/pfe-tools/custom-elements-manifest/lib

1 file changed

+1
-1
lines changed

tools/pfe-tools/custom-elements-manifest/lib/Manifest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ export class Manifest {
319319
options.sourceControlURLPrefix,
320320
`${join(normalize(options.rootDir), normalize(options.elementsDir))}${path.sep}`,
321321
) ?? '';
322-
const [last = ''] = filePath.split('/').reverse();
322+
const [last = ''] = filePath.split(path.sep).reverse();
323323
const filename = last.replace('.html', '');
324324
const isMainElementDemo = filename === 'index';
325325
const title = isMainElementDemo ? options.aliases[tagName] ?? prettyTag(tagName) : last

0 commit comments

Comments
 (0)