Skip to content

Commit 536ef12

Browse files
committed
fix(tools): windows paths
1 parent f491fe8 commit 536ef12

File tree

1 file changed

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

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,9 @@ export class Manifest {
315315
slug = slugify(slug, { strict: true, lower: true });
316316
const primaryElementName = deslugify(slug, options.rootDir);
317317
const filePath =
318-
path.join(
319-
`${join(options.rootDir, options.elementsDir).replaceAll('\\', '/')}/`,
318+
path.posix.join(
319+
options.rootDir,
320+
options.elementsDir,
320321
demo.source?.href.replace(options.sourceControlURLPrefix, '') ?? '',
321322
);
322323
const [last = ''] = filePath.split(path.sep).reverse();

0 commit comments

Comments
 (0)