Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
find-dupes.js28 linesDownload Raw Back to commands
1const ArboristWorkspaceCmd = require('../arborist-cmd.js')
2
3class FindDupes extends ArboristWorkspaceCmd {
4  static description = 'Find duplication in the package tree'
5  static name = 'find-dupes'
6  static params = [
7    'install-strategy',
8    'legacy-bundling',
9    'global-style',
10    'strict-peer-deps',
11    'package-lock',
12    'omit',
13    'include',
14    'ignore-scripts',
15    'audit',
16    'bin-links',
17    'fund',
18    ...super.params,
19  ]
20
21  async exec () {
22    this.npm.config.set('dry-run', true)
23    return this.npm.exec('dedupe', [])
24  }
25}
26
27module.exports = FindDupes
28 
codekingpro/portable-devtools · Team Ai