Skip to content

Commit f559d21

Browse files
Matt-Dionisclaude
andcommitted
Simplify settings.json path creation to avoid PathValidator issues
- Remove PathValidator.createSafeFilePath call for settings.json - Use simple path.join with already-created claudeDir - This avoids complex path resolution that may fail in CI - All tests pass locally 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 16fb76e commit f559d21

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

claude-config-composer/src/generator/config-generator.ts

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,8 @@ export class ConfigGenerator {
205205
console.log('Validated settings:', JSON.stringify(validatedSettings, null, 2));
206206
}
207207

208-
const settingsPath = await PathValidator.createSafeFilePath(
209-
'settings.json',
210-
'.claude',
211-
resolvedOutputDir
212-
);
213-
208+
// Write settings.json directly to the already-created .claude directory
209+
const settingsPath = path.join(claudeDir, 'settings.json');
214210
await fs.writeFile(settingsPath, JSON.stringify(validatedSettings, null, 2));
215211
if (spinner) spinner.succeed(steps[currentStep]);
216212

0 commit comments

Comments
 (0)