storybook-addon-sdc 0.22.18 → 0.22.19
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 +6 -3
- package/package.json +1 -1
package/dist/preset.js
CHANGED
|
@@ -470,9 +470,12 @@ var readSDC = (filePath, defs, validate) => {
|
|
|
470
470
|
};
|
|
471
471
|
var generateImports = (directory, namespaces) => {
|
|
472
472
|
const componentName = basename2(directory);
|
|
473
|
-
return readdirSync2(directory).filter(
|
|
474
|
-
(file)
|
|
475
|
-
|
|
473
|
+
return readdirSync2(directory).filter((file) => {
|
|
474
|
+
if (extname(file) === ".yml") {
|
|
475
|
+
return file.endsWith(".story.yml");
|
|
476
|
+
}
|
|
477
|
+
return [".css", ".js", ".mjs", ".twig"].includes(extname(file));
|
|
478
|
+
}).map((file) => {
|
|
476
479
|
const filePath = `./${file}`;
|
|
477
480
|
const namespace = namespaces.pathToNamespace(directory);
|
|
478
481
|
logger.info(`IMPORT ASSET ${directory}/${file}`);
|