Skip to content

Commit 1cb2e1b

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

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
@@ -314,12 +314,13 @@ export class Manifest {
314314
// strict removes all special characters from slug
315315
slug = slugify(slug, { strict: true, lower: true });
316316
const primaryElementName = deslugify(slug, options.rootDir);
317-
const filePath =
317+
const filePath = path.normalize(
318318
path.posix.join(
319319
options.rootDir,
320320
options.elementsDir,
321321
demo.source?.href.replace(options.sourceControlURLPrefix, '') ?? '',
322-
);
322+
));
323+
console.log({ filePath });
323324
const [last = ''] = filePath.split(path.sep).reverse();
324325
const filename = last.replace('.html', '');
325326
const isMainElementDemo = filename === 'index';

0 commit comments

Comments
 (0)