@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
|
@@ -3922,7 +3922,7 @@ function getResourcePath(resource) {
|
|
|
3922
3922
|
}
|
|
3923
3923
|
|
|
3924
3924
|
// src/ai-guides/generator.ts
|
|
3925
|
-
import { existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync } from "fs";
|
|
3925
|
+
import { existsSync, mkdirSync, readdirSync, readFileSync, writeFileSync, unlinkSync } from "fs";
|
|
3926
3926
|
import { resolve, dirname, join } from "path";
|
|
3927
3927
|
import { fileURLToPath } from "url";
|
|
3928
3928
|
var __filename = fileURLToPath(import.meta.url);
|
|
@@ -4058,8 +4058,33 @@ function generateAIGuides(rootDir, options = {}) {
|
|
|
4058
4058
|
result.cursorRules = files.length;
|
|
4059
4059
|
result.files.push(...files);
|
|
4060
4060
|
}
|
|
4061
|
+
cleanupRootLevelDuplicates(rootDir);
|
|
4061
4062
|
return result;
|
|
4062
4063
|
}
|
|
4064
|
+
function cleanupRootLevelDuplicates(rootDir) {
|
|
4065
|
+
const claudeOmnify = resolve(rootDir, ".claude/omnify");
|
|
4066
|
+
const guidesOmnify = resolve(rootDir, ".claude/omnify/guides/omnify");
|
|
4067
|
+
if (!existsSync(guidesOmnify)) return;
|
|
4068
|
+
const filesToCleanup = [
|
|
4069
|
+
"schema-guide.md",
|
|
4070
|
+
"config-guide.md",
|
|
4071
|
+
"typescript-guide.md",
|
|
4072
|
+
"laravel-guide.md",
|
|
4073
|
+
"antdesign-guide.md",
|
|
4074
|
+
"react-form-guide.md",
|
|
4075
|
+
"japan-guide.md"
|
|
4076
|
+
];
|
|
4077
|
+
for (const file of filesToCleanup) {
|
|
4078
|
+
const rootFile = resolve(claudeOmnify, file);
|
|
4079
|
+
const guidesFile = resolve(guidesOmnify, file);
|
|
4080
|
+
if (existsSync(rootFile) && existsSync(guidesFile)) {
|
|
4081
|
+
try {
|
|
4082
|
+
unlinkSync(rootFile);
|
|
4083
|
+
} catch {
|
|
4084
|
+
}
|
|
4085
|
+
}
|
|
4086
|
+
}
|
|
4087
|
+
}
|
|
4063
4088
|
function shouldGenerateAIGuides(rootDir) {
|
|
4064
4089
|
const claudeDir = resolve(rootDir, ".claude/omnify/guides/laravel");
|
|
4065
4090
|
const cursorDir = resolve(rootDir, ".cursor/rules/omnify");
|
|
@@ -4556,4 +4581,4 @@ export {
|
|
|
4556
4581
|
shouldGenerateAIGuides,
|
|
4557
4582
|
laravelPlugin
|
|
4558
4583
|
};
|
|
4559
|
-
//# sourceMappingURL=chunk-
|
|
4584
|
+
//# sourceMappingURL=chunk-EVW3645L.js.map
|