vibe-design-system 2.8.29 → 2.8.30
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
|
@@ -1226,8 +1226,10 @@ function buildStoryFileContent(comp) {
|
|
|
1226
1226
|
let importPath = "";
|
|
1227
1227
|
const isPageFile = fileNoExt.startsWith("pages/") || fileNoExt.startsWith("src/pages/");
|
|
1228
1228
|
if (isPageFile) {
|
|
1229
|
-
|
|
1230
|
-
|
|
1229
|
+
// Keep full path with src/ prefix so relative is computed correctly from src/stories/
|
|
1230
|
+
// e.g. "src/pages/Admin" → "../pages/Admin" (NOT "../../pages/Admin")
|
|
1231
|
+
const fullPath = fileNoExt.startsWith("src/") ? fileNoExt : "src/" + fileNoExt;
|
|
1232
|
+
importPath = path.posix.relative("src/stories", fullPath);
|
|
1231
1233
|
} else {
|
|
1232
1234
|
const targetPath = path.posix.join(COMPONENTS_REL_DIR, fileNoExt);
|
|
1233
1235
|
importPath = path.posix.relative("src/stories", targetPath);
|