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.
2 parents 775252b + 3035d91 commit 9d57c13Copy full SHA for 9d57c13
.changeset/tools-analyzer-demos.md
@@ -0,0 +1,5 @@
1
+---
2
+"@patternfly/pfe-tools": patch
3
4
+
5
+analyzer: find demos in different repo setups
tools/pfe-tools/custom-elements-manifest/demos.ts
@@ -36,7 +36,7 @@ export function demosPlugin(options?: PfeConfig): Plugin {
36
: x.declarations.flatMap(y => (y as { tagName: string }).tagName)).filter(Boolean);
37
38
for (const moduleDoc of customElementsManifest.modules) {
39
- const [primaryElementName] = moduleDoc.path.split(sep);
+ const primaryElementName = moduleDoc.path.split(sep).find(x => x !== 'elements') ?? '';
40
let demoPath = join(rootDir, primaryElementName, 'demo');
41
42
if (!existsSync(demoPath)) {
0 commit comments