diff options
Diffstat (limited to 'lib/base-command.js')
-rw-r--r-- | lib/base-command.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/base-command.js b/lib/base-command.js index c5bd3fd94..870c69acc 100644 --- a/lib/base-command.js +++ b/lib/base-command.js @@ -7,6 +7,8 @@ class BaseCommand { constructor (npm) { this.wrapWidth = 80 this.npm = npm + this.workspaces = null + this.workspacePaths = null } get name () { @@ -73,13 +75,7 @@ class BaseCommand { } async setWorkspaces (filters) { - if (this.isArboristCmd) - this.includeWorkspaceRoot = false - - const ws = await getWorkspaces(filters, { - path: this.npm.localPrefix, - includeWorkspaceRoot: this.includeWorkspaceRoot, - }) + const ws = await getWorkspaces(filters, { path: this.npm.localPrefix }) this.workspaces = ws this.workspaceNames = [...ws.keys()] this.workspacePaths = [...ws.values()] |