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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibe-design-system",
3
- "version": "2.4.9",
3
+ "version": "2.4.10",
4
4
  "description": "Auto-generate design systems for vibe coding projects",
5
5
  "type": "module",
6
6
  "bin": {
@@ -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
- const importPath = `@/components/${fileNoExt}`;
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);