vibe-design-system 2.5.4 → 2.5.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vibe-design-system",
3
- "version": "2.5.4",
3
+ "version": "2.5.6",
4
4
  "description": "Auto-generate design systems for vibe coding projects",
5
5
  "type": "module",
6
6
  "bin": {
@@ -29,6 +29,8 @@ const cliT = (key, n) => CLI_LOCALES[CLI_LOCALE][key].replace("{n}", String(n));
29
29
  const SRC_DIR = path.join(PROJECT_ROOT, "src");
30
30
  const COMPONENTS_DIR = path.join(PROJECT_ROOT, "src", "components");
31
31
  const PAGES_DIR = path.join(PROJECT_ROOT, "src", "pages");
32
+
33
+ const IGNORE_DIRS = ["node_modules", "dist", ".next", "build", "vds-generated", ".storybook"];
32
34
  const OUTPUT_FILE = path.join(PROJECT_ROOT, "vds-output.json");
33
35
  const PUBLIC_MANIFEST = path.join(PROJECT_ROOT, "public", "vds-output.json");
34
36
  const HISTORY_FILE = path.join(PROJECT_ROOT, "vds-history.json");
@@ -337,6 +339,7 @@ function getAllComponentFiles(dir, baseDir = dir) {
337
339
  for (const entry of entries) {
338
340
  const fullPath = path.join(dir, entry.name);
339
341
  if (entry.isDirectory()) {
342
+ if (IGNORE_DIRS.includes(entry.name)) continue;
340
343
  files.push(...getAllComponentFiles(fullPath, baseDir));
341
344
  } else if (entry.isFile() && /\.(tsx|jsx)$/i.test(entry.name)) {
342
345
  files.push(path.relative(baseDir, fullPath).replace(/\\/g, "/"));
@@ -794,6 +797,7 @@ export function ${componentName}() {
794
797
  category: "Extracted",
795
798
  description: "Auto-extracted from repeated className patterns.",
796
799
  tokens: [...new Set(tokens)],
800
+ occurrences: s.occurrences ?? 0,
797
801
  });
798
802
  }
799
803
  return entries;
@@ -1199,8 +1203,6 @@ function scan() {
1199
1203
  foundations.icons = extractLucideIconsUsed(SRC_DIR);
1200
1204
  foundations.brand = { assets: extractBrandAssets() };
1201
1205
  const componentSuggestions = extractComponentSuggestions();
1202
- const vdsGeneratedEntries = writeVdsGeneratedComponents(componentSuggestions);
1203
- results.push(...vdsGeneratedEntries);
1204
1206
  const output = {
1205
1207
  branch: getGitBranch(),
1206
1208
  engineer: getGitEngineer(),
@@ -960,12 +960,14 @@ function main() {
960
960
  for (const comp of components) {
961
961
  const componentName = toSafeComponentName(comp.name, comp.file);
962
962
  if (onlyName && componentName !== onlyName) continue;
963
+ if (!comp.file.startsWith("ui/") && !comp.file.startsWith("pages/")) continue;
964
+
965
+ const storyFileName = `${componentName}.stories.tsx`;
966
+ const storyPath = path.join(STORIES_DIR, storyFileName);
963
967
  if (SKIP_LIST.includes(componentName)) continue;
964
968
  const requiredCount = Array.isArray(comp.props) ? comp.props.filter((p) => p.required === true).length : 0;
965
969
  if (requiredCount > 3) continue;
966
970
 
967
- const storyFileName = `${componentName}.stories.tsx`;
968
- const storyPath = path.join(STORIES_DIR, storyFileName);
969
971
  const content = buildStoryFileContent(comp);
970
972
  if (content == null) continue;
971
973
  fs.writeFileSync(storyPath, content, "utf-8");