Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Sladuca committed Nov 28, 2024
2 parents af00ff3 + 4851dcd commit ae73e77
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@
"peerDependencies": {
"typescript": "^5.6.2"
},
"version": "0.1.2"
"version": "0.1.3"
}
6 changes: 5 additions & 1 deletion src/helpers/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,20 @@ const ConfigDefaults = process.env.IS_DEVELOPMENT_CLI_ENV
// --

export async function saveConfig(
config: Partial<Config>,
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 };
} catch (error) {
console.error("Error saving config:", error);
return { success: false };
}
}
Expand Down

0 comments on commit ae73e77

Please sign in to comment.