@theholocron/cli 3.22.1 → 3.24.0
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/cli.mjs +7 -3
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +3 -3
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -3274,7 +3274,7 @@ async function runSetup(input) {
|
|
|
3274
3274
|
}
|
|
3275
3275
|
if (Array.isArray(storybookProjects)) {
|
|
3276
3276
|
if (!hasDocs) result["type"] = "storybook";
|
|
3277
|
-
result["storybook-projects"] = JSON.stringify(storybookProjects.map(({ name, path }) => ({
|
|
3277
|
+
result["storybook-projects"] = JSON.stringify(storybookProjects.map(({ name, path = "." }) => ({
|
|
3278
3278
|
name,
|
|
3279
3279
|
workingDir: path
|
|
3280
3280
|
})));
|
|
@@ -3301,8 +3301,12 @@ async function runSetup(input) {
|
|
|
3301
3301
|
if (p && p !== ".") paths.push(`${p}/**`);
|
|
3302
3302
|
}
|
|
3303
3303
|
const storybookProjects = raw["storybook"];
|
|
3304
|
-
if (Array.isArray(storybookProjects)) {
|
|
3305
|
-
|
|
3304
|
+
if (Array.isArray(storybookProjects)) for (const s of storybookProjects) {
|
|
3305
|
+
const p = s.path || ".";
|
|
3306
|
+
if (p === ".") {
|
|
3307
|
+
paths.push("src/**");
|
|
3308
|
+
paths.push(".storybook/**");
|
|
3309
|
+
} else paths.push(`${p}/**`);
|
|
3306
3310
|
}
|
|
3307
3311
|
return paths;
|
|
3308
3312
|
}
|