storybook-addon-sdc 0.2.3 → 0.2.6
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/preset.js +8 -1
- package/package.json +1 -1
package/dist/preset.js
CHANGED
|
@@ -5728,8 +5728,15 @@ import { mergeConfig } from "vite";
|
|
|
5728
5728
|
import { resolve as resolve3 } from "path";
|
|
5729
5729
|
import { existsSync as existsSync2 } from "fs";
|
|
5730
5730
|
import glob from "glob";
|
|
5731
|
+
var cachedComponentDirectories = null;
|
|
5732
|
+
var getComponentDirectories = () => {
|
|
5733
|
+
if (cachedComponentDirectories === null) {
|
|
5734
|
+
cachedComponentDirectories = glob.sync("./components/**/*.component.yml");
|
|
5735
|
+
}
|
|
5736
|
+
return cachedComponentDirectories;
|
|
5737
|
+
};
|
|
5731
5738
|
var resolveComponentPath2 = (namespace, component) => {
|
|
5732
|
-
const componentDirectories =
|
|
5739
|
+
const componentDirectories = getComponentDirectories();
|
|
5733
5740
|
const possiblePaths = componentDirectories.map(
|
|
5734
5741
|
(dir) => resolve3(`${dir}/${component}/${component}.component.yml`)
|
|
5735
5742
|
);
|