@yamada-ui/cli 2.1.14 → 2.1.15-dev-20261007075338
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6035,7 +6035,7 @@ async function getGeneratedNameMap(config) {
|
|
|
6035
6035
|
const results = await Promise.all(SECTION_NAMES.map(async (section) => {
|
|
6036
6036
|
try {
|
|
6037
6037
|
const sectionPath = config.getSectionResolvedPath(section);
|
|
6038
|
-
return [section, (await readdir(sectionPath, { withFileTypes: true })).filter((dirent) => dirent.isDirectory()).map((dirent) => dirent.name)];
|
|
6038
|
+
return [section, (await readdir(sectionPath, { withFileTypes: true })).filter((dirent) => dirent.isDirectory() && existsSync(path.join(sectionPath, dirent.name, "registry.json"))).map((dirent) => dirent.name)];
|
|
6039
6039
|
} catch {
|
|
6040
6040
|
return [section, []];
|
|
6041
6041
|
}
|