storybook-addon-sdc 0.18.2 → 0.19.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.
- package/dist/preset.js +1 -2
- package/package.json +1 -2
package/dist/preset.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { readdirSync as readdirSync2, readFileSync } from "fs";
|
|
3
3
|
import { parse as parseYaml } from "yaml";
|
|
4
4
|
import { join as join2, basename as basename2, dirname as dirname3, extname } from "path";
|
|
5
|
-
import { globSync } from "glob";
|
|
6
5
|
|
|
7
6
|
// src/logger.ts
|
|
8
7
|
import pino from "pino";
|
|
@@ -622,7 +621,7 @@ var yamlStoriesIndexer = {
|
|
|
622
621
|
};
|
|
623
622
|
var loadStoryFilesSync = (fileName) => {
|
|
624
623
|
const folderPath = dirname3(fileName);
|
|
625
|
-
const storyFiles =
|
|
624
|
+
const storyFiles = readdirSync2(folderPath).filter((file) => file.endsWith(".story.yml")).map((file) => join2(folderPath, file));
|
|
626
625
|
return storyFiles.reduce(
|
|
627
626
|
(acc, file) => {
|
|
628
627
|
const content = readFileSync(file, "utf8");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "storybook-addon-sdc",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.2",
|
|
4
4
|
"description": "Drupal Single Directory Components as stories",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"SDC",
|
|
@@ -37,7 +37,6 @@
|
|
|
37
37
|
"format": "prettier --write ."
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"glob": "^13.0.0",
|
|
41
40
|
"json-schema-faker": "^0.5.8",
|
|
42
41
|
"jsonschema": "^1.5.0",
|
|
43
42
|
"lodash-es": "^4.17.21",
|