Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/dedupe.js')
-rw-r--r--lib/dedupe.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/dedupe.js b/lib/dedupe.js
index e58b6c55f..9a58316b8 100644
--- a/lib/dedupe.js
+++ b/lib/dedupe.js
@@ -2,9 +2,9 @@
const Arborist = require('@npmcli/arborist')
const reifyFinish = require('./utils/reify-finish.js')
-const BaseCommand = require('./base-command.js')
+const ArboristWorkspaceCmd = require('./workspaces/arborist-cmd.js')
-class Dedupe extends BaseCommand {
+class Dedupe extends ArboristWorkspaceCmd {
/* istanbul ignore next - see test/lib/load-all-commands.js */
static get description () {
return 'Reduce duplication in the package tree'
@@ -28,6 +28,7 @@ class Dedupe extends BaseCommand {
'bin-links',
'fund',
'dry-run',
+ ...super.params,
]
}
@@ -49,6 +50,7 @@ class Dedupe extends BaseCommand {
log: this.npm.log,
path: where,
dryRun,
+ workspaces: this.workspaces,
}
const arb = new Arborist(opts)
await arb.dedupe(opts)