diff options
Diffstat (limited to 'lib/rebuild.js')
-rw-r--r-- | lib/rebuild.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/rebuild.js b/lib/rebuild.js index 9c2d729e7..ef88dc516 100644 --- a/lib/rebuild.js +++ b/lib/rebuild.js @@ -4,8 +4,8 @@ const npa = require('npm-package-arg') const semver = require('semver') const completion = require('./utils/completion/installed-deep.js') -const BaseCommand = require('./base-command.js') -class Rebuild extends BaseCommand { +const ArboristWorkspaceCmd = require('./workspaces/arborist-cmd.js') +class Rebuild extends ArboristWorkspaceCmd { /* istanbul ignore next - see test/lib/load-all-commands.js */ static get description () { return 'Rebuild a package' @@ -22,6 +22,7 @@ class Rebuild extends BaseCommand { 'global', 'bin-links', 'ignore-scripts', + ...super.params, ] } @@ -45,6 +46,8 @@ class Rebuild extends BaseCommand { const arb = new Arborist({ ...this.npm.flatOptions, path: where, + // TODO when extending ReifyCmd + // workspaces: this.workspaces, }) if (args.length) { |