Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ Please add one entry in this file for each change in Yarn's behavior. Use the sa

## Master

- Adds support for --offline flag to global add command
- Fixes audits when used with `yarn add` & `yarn upgrade`

[#7326](https://github.com/yarnpkg/yarn/pull/7326) - [**David Sanders**](https://github.com/dsanders11)

- Adds support for the `--offline` flag to `yarn global add`

[#7330](https://github.com/yarnpkg/yarn/pull/7330) - [**Francis Crick**](https://guthub.com/fcrick)

Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/add.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export function setFlags(commander: Object) {
commander.option('-O, --optional', 'save package to your `optionalDependencies`');
commander.option('-E, --exact', 'install exact version');
commander.option('-T, --tilde', 'install most recent release with the same minor version');
commander.option('-A', '--audit', 'Run vulnerability audit on installed packages');
commander.option('-A, --audit', 'Run vulnerability audit on installed packages');
}

export async function run(config: Config, reporter: Reporter, flags: Object, args: Array<string>): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion src/cli/commands/upgrade.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export function setFlags(commander: Object) {
'-C, --caret',
'install most recent release with the same major version. Only used when --latest is specified.',
);
commander.option('-A', '--audit', 'Run vulnerability audit on installed packages');
commander.option('-A, --audit', 'Run vulnerability audit on installed packages');
}

export function hasWrapper(commander: Object, args: Array<string>): boolean {
Expand Down