Skip to content

Commit f491fe8

Browse files
committed
fix(tools): windows paths
1 parent 9df7b93 commit f491fe8

File tree

1 file changed

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

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,10 +315,10 @@ export class Manifest {
315315
slug = slugify(slug, { strict: true, lower: true });
316316
const primaryElementName = deslugify(slug, options.rootDir);
317317
const filePath =
318-
demo.source?.href.replace(
319-
options.sourceControlURLPrefix,
320-
`${join(normalize(options.rootDir), normalize(options.elementsDir)).replaceAll(path.sep, '/')}/`,
321-
) ?? '';
318+
path.join(
319+
`${join(options.rootDir, options.elementsDir).replaceAll('\\', '/')}/`,
320+
demo.source?.href.replace(options.sourceControlURLPrefix, '') ?? '',
321+
);
322322
const [last = ''] = filePath.split(path.sep).reverse();
323323
const filename = last.replace('.html', '');
324324
const isMainElementDemo = filename === 'index';

0 commit comments

Comments
 (0)