node/deps/npm/lib/arborist-cmd.js
npm-robot 63503a4f72
deps: upgrade npm to 8.8.0
PR-URL: https://github.com/nodejs/node/pull/42886
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Mestery <mestery@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
2022-04-28 14:11:15 +01:00

27 lines
627 B
JavaScript

// This is the base for all commands whose execWorkspaces just gets
// a list of workspace names and passes it on to new Arborist() to
// be able to run a filtered Arborist.reify() at some point.
const BaseCommand = require('./base-command.js')
class ArboristCmd extends BaseCommand {
get isArboristCmd () {
return true
}
static params = [
'workspace',
'workspaces',
'include-workspace-root',
'install-links',
]
static ignoreImplicitWorkspace = false
async execWorkspaces (args, filters) {
await this.setWorkspaces(filters)
return this.exec(args)
}
}
module.exports = ArboristCmd