From 8e20d02b9b7dfb01823b52159e1e2b8ae2c7073d Mon Sep 17 00:00:00 2001 From: Michael H Date: Thu, 19 Dec 2024 14:28:23 +1100 Subject: [PATCH] update registry scope guide (.npmrc is supported) (#15866) --- docs/guides/install/registry-scope.md | 4 +++- docs/install/npmrc.md | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/guides/install/registry-scope.md b/docs/guides/install/registry-scope.md index a36cde6fb04113..0eeb973deee125 100644 --- a/docs/guides/install/registry-scope.md +++ b/docs/guides/install/registry-scope.md @@ -2,7 +2,9 @@ name: Configure a private registry for an organization scope with bun install --- -Bun does not read `.npmrc` files; instead private registries are configured via `bunfig.toml`. To configure a registry for a particular npm scope: +Private registries can be configured using either [`.npmrc`](https://bun.sh/docs/install/npmrc) or [`bunfig.toml`](https://bun.sh/docs/runtime/bunfig#install-registry). While both are supported, we recommend using **bunfig.toml** for enhanced flexibility and Bun-specific options. + +To configure a registry for a particular npm scope: ```toml#bunfig.toml [install.scopes] diff --git a/docs/install/npmrc.md b/docs/install/npmrc.md index ae3c074892a10c..3153dd6febcb54 100644 --- a/docs/install/npmrc.md +++ b/docs/install/npmrc.md @@ -6,7 +6,7 @@ Bun supports loading configuration options from [`.npmrc`](https://docs.npmjs.co {% /callout %} -# Supported options +## Supported options ### `registry`: Set the default registry