From 1d5e4520e97db6b9ccb81ece772217410b77b836 Mon Sep 17 00:00:00 2001 From: Junior Garcia Date: Thu, 16 Jan 2025 15:29:51 -0300 Subject: [PATCH] fix: postbuild script --- .changeset/friendly-hounds-walk.md | 5 ----- .changeset/hot-owls-sniff.md | 5 ----- .changeset/quick-peas-care.md | 5 ----- .changeset/quiet-cups-hide.md | 5 +++++ packages/core/react/src/scripts/postbuild.js | 9 +++++++-- 5 files changed, 12 insertions(+), 17 deletions(-) delete mode 100644 .changeset/friendly-hounds-walk.md delete mode 100644 .changeset/hot-owls-sniff.md delete mode 100644 .changeset/quick-peas-care.md create mode 100644 .changeset/quiet-cups-hide.md diff --git a/.changeset/friendly-hounds-walk.md b/.changeset/friendly-hounds-walk.md deleted file mode 100644 index 3ca7b73589..0000000000 --- a/.changeset/friendly-hounds-walk.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nextui-org/input": patch ---- - -fixed input inconsistent focus behaviour on wrapper click (#4287) diff --git a/.changeset/hot-owls-sniff.md b/.changeset/hot-owls-sniff.md deleted file mode 100644 index 2c713d7975..0000000000 --- a/.changeset/hot-owls-sniff.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nextui-org/alert": patch ---- - -propagate className (#4533) diff --git a/.changeset/quick-peas-care.md b/.changeset/quick-peas-care.md deleted file mode 100644 index 5c453cbb55..0000000000 --- a/.changeset/quick-peas-care.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@nextui-org/alert": patch ---- - -fix title type in Avatar (#4525) diff --git a/.changeset/quiet-cups-hide.md b/.changeset/quiet-cups-hide.md new file mode 100644 index 0000000000..ed37542c9b --- /dev/null +++ b/.changeset/quiet-cups-hide.md @@ -0,0 +1,5 @@ +--- +"@heroui/react": patch +--- + +Post build script fixed diff --git a/packages/core/react/src/scripts/postbuild.js b/packages/core/react/src/scripts/postbuild.js index 365ca2a102..27352c00de 100644 --- a/packages/core/react/src/scripts/postbuild.js +++ b/packages/core/react/src/scripts/postbuild.js @@ -34,6 +34,13 @@ function generateComponents() { for (const component of components) { if (EXCLUDE_LIST.includes(component)) continue; + + // Find the route for this component + const routeComponent = routes.find(route => route.key === component) || {}; + + // Skip if component is marked as comingSoon + if (routeComponent.comingSoon) continue; + const componentPath = path.resolve(componentsDir, component); const componentPkg = require(path.resolve(componentPath, 'package.json')); @@ -42,8 +49,6 @@ function generateComponents() { const componentDocs = `${baseDocs}/${component}`; const componentDesc = componentPkg.description; - const routeComponent = routes.find(route => route.key === component) || {}; - // Add style alias for the component const mdxComponentPath = path.resolve(docsComponentsDir, `${component}.mdx`); const mdxComponentContent = fs.existsSync(mdxComponentPath) && fs.readFileSync(mdxComponentPath, 'utf8') || '';