mirror of
https://github.com/nextui-org/nextui.git
synced 2025-12-08 19:26:11 +00:00
fix: postbuild script
This commit is contained in:
parent
6492d36c68
commit
1d5e4520e9
@ -1,5 +0,0 @@
|
||||
---
|
||||
"@nextui-org/input": patch
|
||||
---
|
||||
|
||||
fixed input inconsistent focus behaviour on wrapper click (#4287)
|
||||
@ -1,5 +0,0 @@
|
||||
---
|
||||
"@nextui-org/alert": patch
|
||||
---
|
||||
|
||||
propagate className (#4533)
|
||||
@ -1,5 +0,0 @@
|
||||
---
|
||||
"@nextui-org/alert": patch
|
||||
---
|
||||
|
||||
fix title type in Avatar (#4525)
|
||||
5
.changeset/quiet-cups-hide.md
Normal file
5
.changeset/quiet-cups-hide.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@heroui/react": patch
|
||||
---
|
||||
|
||||
Post build script fixed
|
||||
@ -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') || '';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user