@famgia/omnify-laravel 0.0.90 → 0.0.91

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.cjs CHANGED
@@ -4111,8 +4111,33 @@ function generateAIGuides(rootDir, options = {}) {
4111
4111
  result.cursorRules = files.length;
4112
4112
  result.files.push(...files);
4113
4113
  }
4114
+ cleanupRootLevelDuplicates(rootDir);
4114
4115
  return result;
4115
4116
  }
4117
+ function cleanupRootLevelDuplicates(rootDir) {
4118
+ const claudeOmnify = (0, import_node_path.resolve)(rootDir, ".claude/omnify");
4119
+ const guidesOmnify = (0, import_node_path.resolve)(rootDir, ".claude/omnify/guides/omnify");
4120
+ if (!(0, import_node_fs.existsSync)(guidesOmnify)) return;
4121
+ const filesToCleanup = [
4122
+ "schema-guide.md",
4123
+ "config-guide.md",
4124
+ "typescript-guide.md",
4125
+ "laravel-guide.md",
4126
+ "antdesign-guide.md",
4127
+ "react-form-guide.md",
4128
+ "japan-guide.md"
4129
+ ];
4130
+ for (const file of filesToCleanup) {
4131
+ const rootFile = (0, import_node_path.resolve)(claudeOmnify, file);
4132
+ const guidesFile = (0, import_node_path.resolve)(guidesOmnify, file);
4133
+ if ((0, import_node_fs.existsSync)(rootFile) && (0, import_node_fs.existsSync)(guidesFile)) {
4134
+ try {
4135
+ (0, import_node_fs.unlinkSync)(rootFile);
4136
+ } catch {
4137
+ }
4138
+ }
4139
+ }
4140
+ }
4116
4141
  function shouldGenerateAIGuides(rootDir) {
4117
4142
  const claudeDir = (0, import_node_path.resolve)(rootDir, ".claude/omnify/guides/laravel");
4118
4143
  const cursorDir = (0, import_node_path.resolve)(rootDir, ".cursor/rules/omnify");