Skip to content

Commit

Permalink
fix: async ensureDirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
Princeyadav05 committed Jul 16, 2024
1 parent b51c6a1 commit fb8a88a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/cli/src/util/configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ export const writeProfileConfig = async (
config: ProfileConfig
): Promise<void> => {
const path = getProfileConfigurationFilePath()
ensureDirectoryExists(path);
await ensureDirectoryExists(path);
await writeFile(path, JSON.stringify(config, null, 2), 'utf8')
}

export const writePrivateKeyConfig = async (
config: PrivateKeyConfig
): Promise<void> => {
const path = getPrivateKeyConfigurationFilePath()
ensureDirectoryExists(path);
await ensureDirectoryExists(path);
await writeFile(path, JSON.stringify(config, null, 2), 'utf8')
}

Expand Down

0 comments on commit fb8a88a

Please sign in to comment.