@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.js
CHANGED
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");
|