From cc8731985b666f06dce263e03bac8f7f34bc25e0 Mon Sep 17 00:00:00 2001 From: Yorke Rhodes Date: Thu, 9 May 2024 21:16:41 -0400 Subject: [PATCH] Default to home directory for local registry (#3744) ### Description Make CLI default to homedir for local registry --- .changeset/green-ads-live.md | 5 +++++ typescript/cli/src/commands/options.ts | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .changeset/green-ads-live.md diff --git a/.changeset/green-ads-live.md b/.changeset/green-ads-live.md new file mode 100644 index 000000000..ab79ea16e --- /dev/null +++ b/.changeset/green-ads-live.md @@ -0,0 +1,5 @@ +--- +"@hyperlane-xyz/cli": minor +--- + +Default to home directory for local registry diff --git a/typescript/cli/src/commands/options.ts b/typescript/cli/src/commands/options.ts index 1d5317656..465abb09e 100644 --- a/typescript/cli/src/commands/options.ts +++ b/typescript/cli/src/commands/options.ts @@ -1,3 +1,4 @@ +import os from 'os'; import { Options } from 'yargs'; import { DEFAULT_GITHUB_REGISTRY } from '@hyperlane-xyz/registry'; @@ -29,7 +30,7 @@ export const registryUriCommandOption: Options = { export const overrideRegistryUriCommandOption: Options = { type: 'string', description: 'Path to a local registry to override the default registry', - default: './', + default: `${os.homedir()}/.hyperlane`, }; export const skipConfirmationOption: Options = {