We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 536ef12 commit 1cb2e1bCopy full SHA for 1cb2e1b
tools/pfe-tools/custom-elements-manifest/lib/Manifest.ts
@@ -314,12 +314,13 @@ export class Manifest {
314
// strict removes all special characters from slug
315
slug = slugify(slug, { strict: true, lower: true });
316
const primaryElementName = deslugify(slug, options.rootDir);
317
- const filePath =
+ const filePath = path.normalize(
318
path.posix.join(
319
options.rootDir,
320
options.elementsDir,
321
demo.source?.href.replace(options.sourceControlURLPrefix, '') ?? '',
322
- );
+ ));
323
+ console.log({ filePath });
324
const [last = ''] = filePath.split(path.sep).reverse();
325
const filename = last.replace('.html', '');
326
const isMainElementDemo = filename === 'index';
0 commit comments