@famgia/omnify-laravel 0.0.90 → 0.0.92

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/index.js CHANGED
@@ -26,7 +26,7 @@ import {
26
26
  shouldGenerateAIGuides,
27
27
  toColumnName,
28
28
  toTableName
29
- } from "./chunk-2QSKZS63.js";
29
+ } from "./chunk-EVW3645L.js";
30
30
  export {
31
31
  formatColumnMethod,
32
32
  formatForeignKey,
package/dist/plugin.cjs CHANGED
@@ -4034,8 +4034,33 @@ function generateAIGuides(rootDir, options = {}) {
4034
4034
  result.cursorRules = files.length;
4035
4035
  result.files.push(...files);
4036
4036
  }
4037
+ cleanupRootLevelDuplicates(rootDir);
4037
4038
  return result;
4038
4039
  }
4040
+ function cleanupRootLevelDuplicates(rootDir) {
4041
+ const claudeOmnify = (0, import_node_path.resolve)(rootDir, ".claude/omnify");
4042
+ const guidesOmnify = (0, import_node_path.resolve)(rootDir, ".claude/omnify/guides/omnify");
4043
+ if (!(0, import_node_fs.existsSync)(guidesOmnify)) return;
4044
+ const filesToCleanup = [
4045
+ "schema-guide.md",
4046
+ "config-guide.md",
4047
+ "typescript-guide.md",
4048
+ "laravel-guide.md",
4049
+ "antdesign-guide.md",
4050
+ "react-form-guide.md",
4051
+ "japan-guide.md"
4052
+ ];
4053
+ for (const file of filesToCleanup) {
4054
+ const rootFile = (0, import_node_path.resolve)(claudeOmnify, file);
4055
+ const guidesFile = (0, import_node_path.resolve)(guidesOmnify, file);
4056
+ if ((0, import_node_fs.existsSync)(rootFile) && (0, import_node_fs.existsSync)(guidesFile)) {
4057
+ try {
4058
+ (0, import_node_fs.unlinkSync)(rootFile);
4059
+ } catch {
4060
+ }
4061
+ }
4062
+ }
4063
+ }
4039
4064
  function shouldGenerateAIGuides(rootDir) {
4040
4065
  const claudeDir = (0, import_node_path.resolve)(rootDir, ".claude/omnify/guides/laravel");
4041
4066
  const cursorDir = (0, import_node_path.resolve)(rootDir, ".cursor/rules/omnify");