11cb0ef41Sopenharmony_ci// dedupe duplicated packages, or find them in the tree 21cb0ef41Sopenharmony_ciconst ArboristWorkspaceCmd = require('../arborist-cmd.js') 31cb0ef41Sopenharmony_ci 41cb0ef41Sopenharmony_ciclass FindDupes extends ArboristWorkspaceCmd { 51cb0ef41Sopenharmony_ci static description = 'Find duplication in the package tree' 61cb0ef41Sopenharmony_ci static name = 'find-dupes' 71cb0ef41Sopenharmony_ci static params = [ 81cb0ef41Sopenharmony_ci 'install-strategy', 91cb0ef41Sopenharmony_ci 'legacy-bundling', 101cb0ef41Sopenharmony_ci 'global-style', 111cb0ef41Sopenharmony_ci 'strict-peer-deps', 121cb0ef41Sopenharmony_ci 'package-lock', 131cb0ef41Sopenharmony_ci 'omit', 141cb0ef41Sopenharmony_ci 'include', 151cb0ef41Sopenharmony_ci 'ignore-scripts', 161cb0ef41Sopenharmony_ci 'audit', 171cb0ef41Sopenharmony_ci 'bin-links', 181cb0ef41Sopenharmony_ci 'fund', 191cb0ef41Sopenharmony_ci ...super.params, 201cb0ef41Sopenharmony_ci ] 211cb0ef41Sopenharmony_ci 221cb0ef41Sopenharmony_ci async exec (args) { 231cb0ef41Sopenharmony_ci this.npm.config.set('dry-run', true) 241cb0ef41Sopenharmony_ci return this.npm.exec('dedupe', []) 251cb0ef41Sopenharmony_ci } 261cb0ef41Sopenharmony_ci} 271cb0ef41Sopenharmony_cimodule.exports = FindDupes 28