@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/{chunk-2QSKZS63.js → chunk-EVW3645L.js} +27 -2
- package/dist/{chunk-2QSKZS63.js.map → chunk-EVW3645L.js.map} +1 -1
- package/dist/index.cjs +25 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin.cjs +25 -0
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +4 -4
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");
|