fix: postbuild script

This commit is contained in:
Junior Garcia 2025-01-16 15:29:51 -03:00
parent 6492d36c68
commit 1d5e4520e9
5 changed files with 12 additions and 17 deletions

View File

@ -1,5 +0,0 @@
---
"@nextui-org/input": patch
---
fixed input inconsistent focus behaviour on wrapper click (#4287)

View File

@ -1,5 +0,0 @@
---
"@nextui-org/alert": patch
---
propagate className (#4533)

View File

@ -1,5 +0,0 @@
---
"@nextui-org/alert": patch
---
fix title type in Avatar (#4525)

View File

@ -0,0 +1,5 @@
---
"@heroui/react": patch
---
Post build script fixed

View File

@ -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') || '';