vibe-design-system 2.4.9 → 2.4.10
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/package.json
CHANGED
|
@@ -534,7 +534,12 @@ function buildRecipeStoryContent(comp, componentName, importPath, title, source,
|
|
|
534
534
|
function buildStoryFileContent(comp) {
|
|
535
535
|
const componentName = toSafeComponentName(comp.name, comp.file);
|
|
536
536
|
const fileNoExt = comp.file.replace(/\.(tsx|jsx)$/, "");
|
|
537
|
-
|
|
537
|
+
let importPath = "";
|
|
538
|
+
if (fileNoExt.startsWith("pages/")) {
|
|
539
|
+
importPath = "@/" + fileNoExt;
|
|
540
|
+
} else {
|
|
541
|
+
importPath = "@/components/" + fileNoExt;
|
|
542
|
+
}
|
|
538
543
|
const group = comp.group || "Components";
|
|
539
544
|
const category = comp.category || null;
|
|
540
545
|
const titleParts = [group, category, componentName].filter(Boolean);
|