respect optional peer dependencies and update docs (#6615)

* update docs

* optional peer dependencies

* rename offset variable name, cache invalidation time

* Update install.zig

* install more peer dependencies
This commit is contained in:
Dylan Conway
2023-10-20 03:27:10 -07:00
committed by GitHub
parent 184528e4eb
commit 4b2cdc4fc1
9 changed files with 91 additions and 42 deletions

View File

@@ -31,7 +31,7 @@ $ bun install
Running `bun install` will:
- **Install** all `dependencies`, `devDependencies`, and `optionalDependencies`. Bun does not install `peerDependencies` by default.
- **Install** all `dependencies`, `devDependencies`, and `optionalDependencies`. Bun will install `peerDependencies` by default.
- **Run** your project's `{pre|post}install` and `{pre|post}prepare` scripts at the appropriate time. For security reasons Bun _does not execute_ lifecycle scripts of installed dependencies.
- **Write** a `bun.lockb` lockfile to the project root.
@@ -162,7 +162,7 @@ optional = true
dev = true
# whether to install peerDependencies
peer = false
peer = true
# equivalent to `--production` flag
production = false