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/rebuild.js')
-rw-r--r--lib/rebuild.js13
1 files changed, 7 insertions, 6 deletions
diff --git a/lib/rebuild.js b/lib/rebuild.js
index ffbdebc21..74f5ae5f6 100644
--- a/lib/rebuild.js
+++ b/lib/rebuild.js
@@ -2,17 +2,18 @@ const { resolve } = require('path')
const Arborist = require('@npmcli/arborist')
const npa = require('npm-package-arg')
const semver = require('semver')
-const usageUtil = require('./utils/usage.js')
const completion = require('./utils/completion/installed-deep.js')
-class Rebuild {
- constructor (npm) {
- this.npm = npm
+const BaseCommand = require('./base-command.js')
+class Rebuild extends BaseCommand {
+ /* istanbul ignore next - see test/lib/load-all-commands.js */
+ static get name () {
+ return 'rebuild'
}
/* istanbul ignore next - see test/lib/load-all-commands.js */
- get usage () {
- return usageUtil('rebuild', 'npm rebuild [[<@scope>/]<name>[@<version>] ...]')
+ static get usage () {
+ return ['[[<@scope>/]<name>[@<version>] ...]']
}
/* istanbul ignore next - see test/lib/load-all-commands.js */