From f5625d0c87b544e398360153ff290633f9f611f8 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Tue, 5 Dec 2023 03:53:15 +0000 Subject: [PATCH] Take the path as-is, not relative to the current dir. (#43) Reviewed-on: https://git.vdb.to/cerc-io/laconic-registry-cli/pulls/43 Co-authored-by: Thomas E Lackey Co-committed-by: Thomas E Lackey --- src/cmds/cns-cmds/record-cmds/publish.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmds/cns-cmds/record-cmds/publish.ts b/src/cmds/cns-cmds/record-cmds/publish.ts index f8c1b91..18f5a50 100644 --- a/src/cmds/cns-cmds/record-cmds/publish.ts +++ b/src/cmds/cns-cmds/record-cmds/publish.ts @@ -30,7 +30,7 @@ export const handler = async (argv: Arguments) => { let file = null; if (filename) { - file = path.join(process.cwd(), filename as string); + file = filename as string; } else { file = 0; // stdin }