Skip to content

Commit

Permalink
fix: allow setting token for default registry
Browse files Browse the repository at this point in the history
  • Loading branch information
h3rmanj authored Jan 10, 2025
1 parent 6fb6603 commit 748b1fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bunfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 748b1fd

Please sign in to comment.