Skip to content

Commit

Permalink
add fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Flaque committed Nov 28, 2024
1 parent 6d6dd0a commit 7acfeca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/helpers/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ export async function saveConfig(
config: Partial<Config>
): Promise<{ success: boolean }> {
const configPath = getConfigPath();
const configDir = join(homedir(), ".sfcompute");
const configData = JSON.stringify(config, null, 2);

try {
// Ensure config directory exists
await Deno.mkdir(configDir, { recursive: true });
await Deno.writeTextFile(configPath, configData);

return { success: true };
Expand Down

0 comments on commit 7acfeca

Please sign in to comment.