Compare commits

...
Author SHA1 Message Date
0xtoshii 6ebc3eb825 md 2025-04-30 14:41:49 -07:00
0xtoshii 5953a212f0 changeset 2025-04-30 14:33:56 -07:00
0xtoshii 50496e4fd5 change default 2025-04-30 14:32:48 -07:00
0xtoshii acc12df665 create clinerules dir 2025-04-30 12:56:16 -07:00
2 changed files with 12 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"claude-dev": minor
---
create clinerules folder if its currently a file and creating new rule
@@ -221,7 +221,14 @@ export const createRuleFile = async (isGlobal: boolean, filename: string, cwd: s
filePath = path.join(globalClineRulesFilePath, filename)
} else {
const localClineRulesFilePath = path.resolve(cwd, GlobalFileNames.clineRules)
const hasError = await ensureLocalClinerulesDirExists(cwd)
if (hasError === true) {
return { filePath: null, fileExists: false }
}
await fs.mkdir(localClineRulesFilePath, { recursive: true })
filePath = path.join(localClineRulesFilePath, filename)
}