Skip to content

Commit

Permalink
fix login:use and account resolution issue (#3773)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkendall authored and inlined committed Sep 27, 2021
1 parent 8dfc816 commit e3aeaf6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
@@ -1 +1,2 @@
- `ext:dev:publish` and `ext:update` now support --force and --non-interactive flags.
- Fixes issue where account specified by `login:use` was not being correctly loaded (#3759).
4 changes: 3 additions & 1 deletion src/command.ts
Expand Up @@ -260,14 +260,16 @@ export class Command {
const account = getInheritedOption(options, "account");
options.account = account;

// selectAccount needs the projectRoot to be set.
options.projectRoot = detectProjectRoot(options);

const projectRoot = options.projectRoot;
const activeAccount = selectAccount(account, projectRoot);

if (activeAccount) {
setActiveAccount(options, activeAccount);
}

options.projectRoot = detectProjectRoot(options);
this.applyRC(options);
if (options.project) {
await this.resolveProjectIdentifiers(options);
Expand Down

0 comments on commit e3aeaf6

Please sign in to comment.