vibe-design-system 2.8.45 → 2.8.46

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
@@ -276,6 +276,12 @@ export default config;
276
276
  `;
277
277
  }
278
278
  // vite (default) & remix
279
+ // For fullstack projects (client/src, frontend/src, etc.), add staticDirs for public assets
280
+ const frontendDir = srcPrefix.split("/")[0]; // e.g. "client" from "client/src"
281
+ const staticDirsLine = srcPrefix !== "src"
282
+ ? `\n staticDirs: [{ from: "../${frontendDir}/public", to: "/${frontendDir}" }],`
283
+ : "";
284
+
279
285
  return `import type { StorybookConfig } from "@storybook/react-vite";
280
286
  import { mergeConfig } from "vite";
281
287
  import path from "path";
@@ -283,7 +289,7 @@ import path from "path";
283
289
  const config: StorybookConfig = {
284
290
  stories: [
285
291
  "../${srcPrefix}/**/*.stories.@(js|jsx|mjs|ts|tsx)",${extraStoriesGlob}
286
- ],
292
+ ],${staticDirsLine}
287
293
  addons: ["@storybook/addon-essentials", "@storybook/addon-a11y"],
288
294
  framework: {
289
295
  name: "@storybook/react-vite",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibe-design-system",
3
- "version": "2.8.45",
3
+ "version": "2.8.46",
4
4
  "description": "Auto-generate design systems for vibe coding projects",
5
5
  "homepage": "https://vibedesign.tech",
6
6
  "repository": {
@@ -3059,15 +3059,10 @@ function main() {
3059
3059
  const requiredCount = Array.isArray(comp.props) ? comp.props.filter((p) => p.required === true).length : 0;
3060
3060
  if (requiredCount > 3) continue;
3061
3061
 
3062
- // Never overwrite manually edited story files
3062
+ // Never overwrite existing story files — only create new ones
3063
+ // To regenerate a story: delete the file and re-run VDS
3063
3064
  if (fs.existsSync(storyPath)) {
3064
- try {
3065
- const existing = fs.readFileSync(storyPath, "utf-8");
3066
- // If file was manually edited (different from VDS auto-gen pattern), skip it
3067
- if (!existing.includes("@vds-regenerate")) {
3068
- continue;
3069
- }
3070
- } catch (_) {}
3065
+ continue;
3071
3066
  }
3072
3067
 
3073
3068
  const content = buildStoryFileContent(comp);