@regardio/dev 1.10.0 → 1.10.2
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.
|
@@ -56,6 +56,9 @@ function generateExportName(jsPath, strip) {
|
|
|
56
56
|
exportPath = exportPath.slice(1);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
+
if (exportPath.endsWith('/index')) {
|
|
60
|
+
exportPath = exportPath.slice(0, -6);
|
|
61
|
+
}
|
|
59
62
|
return `./${exportPath}`;
|
|
60
63
|
}
|
|
61
64
|
function generateExports(jsFiles, distDir, strip) {
|
package/package.json
CHANGED
|
File without changes
|
package/src/bin/flow-release.ts
CHANGED
|
File without changes
|
|
@@ -102,6 +102,11 @@ function generateExportName(jsPath: string, strip: string): string {
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
// Strip /index suffix for cleaner exports (e.g., ./carousel instead of ./carousel/index)
|
|
106
|
+
if (exportPath.endsWith('/index')) {
|
|
107
|
+
exportPath = exportPath.slice(0, -6);
|
|
108
|
+
}
|
|
109
|
+
|
|
105
110
|
return `./${exportPath}`;
|
|
106
111
|
}
|
|
107
112
|
|