Add support for install with --frozen-lockfile (#3365)

* Add support for install with --frozen-lockfile

* Add test

* Add test for frozenLockfile in config file
This commit is contained in:
Tiago Teixeira
2023-06-26 01:43:39 +02:00
committed by GitHub
parent 15ac08474e
commit d8817c2d32
18 changed files with 142 additions and 2 deletions

View File

@@ -49,6 +49,12 @@ To install in production mode (i.e. without `devDependencies`):
$ bun install --production
```
To install dependencies without allowing changes to lockfile (useful on CI):
```bash
$ bun install --frozen-lockfile
```
To perform a dry run (i.e. don't actually install anything):
```bash
@@ -80,6 +86,9 @@ peer = false
# equivalent to `--production` flag
production = false
# equivalent to `--frozen-lockfile` flag
frozenLockfile = false
# equivalent to `--dry-run` flag
dryRun = false
```