Skip to content

Commit 3c92c14

Browse files
committed
fix: demo urls
1 parent b33ea13 commit 3c92c14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/cem-demo-index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ function isCustomElementDeclaration(decl: M.Declaration): decl is M.CustomElemen
88
return !!(decl as M.CustomElementDeclaration).customElement;
99
}
1010

11-
const RE = /^https:\/\/patternflyelements\.com\/components\/(?<slug>[\w-]+)\//;
11+
const RE = /^https:\/\/patternflyelements\.org\/components\/(?<slug>[\w-]+)\//;
1212

1313
const copy = structuredClone(manifest) as M.Package;
1414

@@ -33,7 +33,7 @@ await writeFile('custom-elements.json', JSON.stringify({
3333
declarations: module.declarations?.map(decl => ({
3434
...decl,
3535
demos:
36-
!isCustomElementDeclaration(decl) ? decl
36+
!isCustomElementDeclaration(decl) ? undefined
3737
: decl.demos?.map(demo => isMainDemo(demo) ? ({
3838
...demo,
3939
url: `https://patternflyelements.com/components/${getSlug(demo)}/demo/`,

0 commit comments

Comments
 (0)