vibe-design-system 1.8.3 → 1.8.5

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/bin/init.js CHANGED
@@ -31,6 +31,7 @@ function addScripts(projectRoot) {
31
31
  if (!scripts.vds) scripts.vds = "node vds-core/scan.mjs";
32
32
  if (!scripts["vds:watch"]) scripts["vds:watch"] = "node vds-core/scan.mjs --watch";
33
33
  if (!scripts["vds:dashboard"]) scripts["vds:dashboard"] = "node vds-core/dashboard-server.mjs";
34
+ if (!scripts["vds:stories"]) scripts["vds:stories"] = "node vds-core/story-generator.mjs";
34
35
  pkg.scripts = scripts;
35
36
  fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2), "utf-8");
36
37
  }
@@ -67,6 +68,11 @@ function ensureVdsCore(projectRoot) {
67
68
  console.error("vds-core-template/dashboard-server.mjs bulunamadı.");
68
69
  process.exit(1);
69
70
  }
71
+
72
+ const storyGenSrc = path.join(TEMPLATE_DIR, "story-generator.mjs");
73
+ if (fs.existsSync(storyGenSrc)) {
74
+ fs.copyFileSync(storyGenSrc, path.join(vdsCoreDest, "story-generator.mjs"));
75
+ }
70
76
  }
71
77
 
72
78
  function runScan(projectRoot) {