From 748b1fd9f1cd5ab92a4ab45f6d96c3d97d9887e0 Mon Sep 17 00:00:00 2001 From: Herman Jensen Date: Fri, 10 Jan 2025 12:40:59 +0100 Subject: [PATCH] fix: allow setting token for default registry --- src/bunfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bunfig.ts b/src/bunfig.ts index b408f5f..ab1f132 100644 --- a/src/bunfig.ts +++ b/src/bunfig.ts @@ -31,7 +31,7 @@ export function createBunfig(options: BunfigOptions): string | null { } if (url && !owner) { - return `[install]${EOL}registry = "${url}"${EOL}`; + return `[install]${EOL}registry = { token = "$BUN_AUTH_TOKEN", url = "${url}"}${EOL}`; } return null;