From 1f4635b413979739bec7c56ab7e040d53626b753 Mon Sep 17 00:00:00 2001 From: Thomas E Lackey Date: Mon, 4 Dec 2023 21:44:29 -0600 Subject: [PATCH] Take the path as-is, not relative to the current dir. --- 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 }