Skip to content

Commit ea3459b

Browse files
docs: Update advanced-usage.md (#495)
* Update advanced-usage.md * Update advanced-usage.md * Update advanced-usage.md * Update docs/advanced-usage.md Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com> Co-authored-by: Brian Cristante <33549821+brcrista@users.noreply.github.com>
1 parent 3601f2a commit ea3459b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/advanced-usage.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ Ensure that `package-lock.json` is always committed, use `npm ci` instead of `np
1919

2020
### Yarn
2121

22-
Ensure that `yarn.lock` is always committed, pass `--frozen-lockfile` to `yarn install` when installing packages.
22+
To ensure that `yarn.lock` is always committed, use `yarn install --immutable` when installing packages.
2323

2424
**See also:**
2525
- [Documentation of `yarn.lock`](https://classic.yarnpkg.com/en/docs/yarn-lock)
2626
- [Documentation of `--frozen-lockfile` option](https://classic.yarnpkg.com/en/docs/cli/install#toc-yarn-install-frozen-lockfile)
2727
- [QA - Should lockfiles be committed to the repoistory?](https://yarnpkg.com/getting-started/qa/#should-lockfiles-be-committed-to-the-repository)
28+
- [Documentation of `yarn install`](https://yarnpkg.com/cli/install)
2829

2930
### PNPM
3031

@@ -101,7 +102,7 @@ steps:
101102
with:
102103
node-version: '14'
103104
cache: 'yarn'
104-
- run: yarn install --frozen-lockfile
105+
- run: yarn install --frozen-lockfile # optional, --immutable
105106
- run: yarn test
106107
```
107108

0 commit comments

Comments
 (0)