diff --git a/src/cli/commands/global.js b/src/cli/commands/global.js index 934569a39d..0716f99bab 100644 --- a/src/cli/commands/global.js +++ b/src/cli/commands/global.js @@ -17,7 +17,7 @@ import * as fs from '../../util/fs.js'; class GlobalAdd extends Add { maybeOutputSaveTree(): Promise { - for (const pattern of this.args) { + for (const pattern of this.addedPatterns) { const manifest = this.resolver.getStrictResolvedPattern(pattern); ls(manifest, this.reporter, true); }