mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
more docs
This commit is contained in:
@@ -62,6 +62,9 @@ dev = true
|
||||
# Install peerDependencies (default: false)
|
||||
peer = false
|
||||
|
||||
# Whether to use the github REST api (unauthenticated)
|
||||
github.api = true
|
||||
|
||||
# When using `bun install -g`, install packages here
|
||||
globalDir = "~/.bun/install/global"
|
||||
|
||||
|
||||
@@ -89,6 +89,9 @@ frozenLockfile = false
|
||||
|
||||
# equivalent to `--dry-run` flag
|
||||
dryRun = false
|
||||
|
||||
# whether to use the github REST api (unauthenticated)
|
||||
github.api = true
|
||||
```
|
||||
|
||||
{% /details %}
|
||||
|
||||
@@ -91,6 +91,9 @@ frozenLockfile = false
|
||||
|
||||
# equivalent to `--dry-run` flag
|
||||
dryRun = false
|
||||
|
||||
# whether to use the github REST api (unauthenticated)
|
||||
github.api = true
|
||||
```
|
||||
|
||||
{% /details %}
|
||||
|
||||
@@ -216,6 +216,17 @@ Whether to install peer dependencies. Default `false`.
|
||||
peer = false
|
||||
```
|
||||
|
||||
### `install.github.api`
|
||||
|
||||
Enable using the github REST API to install github dependencies. Default `true`.
|
||||
|
||||
Private github repositories will fail to install if this option is true because the REST API is unauthenticated.
|
||||
|
||||
```toml
|
||||
[install]
|
||||
github.api = true
|
||||
```
|
||||
|
||||
### `install.production`
|
||||
|
||||
Whether `bun install` will run in "production mode". Default `false`.
|
||||
|
||||
@@ -1507,10 +1507,11 @@ pub fn verifyResolutions(this: *Lockfile, local_features: Features, remote_featu
|
||||
} else {
|
||||
if (failed_dep.version.tag == .github) {
|
||||
Output.prettyErrorln(
|
||||
"<r><red>error<r><d>:<r> <b>{s}<r><d>@<b>{}<r><d> failed to resolve<r>\nIf this is a private repository set install.github.api to false in bunfig.toml\n\n",
|
||||
"<r><red>error<r><d>:<r> <b>{s}<r><d>@<b>{}<r><d> failed to resolve<r>\nIf \"{s}\" is a private repository, set install.github.api to false in bunfig.toml\n\n",
|
||||
.{
|
||||
failed_dep.name.slice(string_buf),
|
||||
failed_dep.version.literal.fmt(string_buf),
|
||||
failed_dep.name.slice(string_buf),
|
||||
},
|
||||
);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user