Skip to content

Commit 7e04417

Browse files
committed
fix: rename base-cmd to match other commands
1 parent 08e0c0e commit 7e04417

47 files changed

Lines changed: 48 additions & 51 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lib/arborist-cmd.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
const { log } = require('proc-log')
2+
const BaseCommand = require('./base-cmd.js')
23

34
// This is the base for all commands whose execWorkspaces just gets
45
// a list of workspace names and passes it on to new Arborist() to
56
// be able to run a filtered Arborist.reify() at some point.
6-
7-
const BaseCommand = require('./base-command.js')
87
class ArboristCmd extends BaseCommand {
98
get isArboristCmd () {
109
return true
File renamed without changes.

lib/commands/access.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const pkgJson = require('@npmcli/package-json')
55
const localeCompare = require('@isaacs/string-locale-compare')('en')
66
const otplease = require('../utils/otplease.js')
77
const getIdentity = require('../utils/get-identity.js')
8-
const BaseCommand = require('../base-command.js')
8+
const BaseCommand = require('../base-cmd.js')
99

1010
const commands = [
1111
'get',

lib/commands/adduser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const { log, output } = require('proc-log')
22
const { redactLog: replaceInfo } = require('@npmcli/redact')
33
const auth = require('../utils/auth.js')
4-
const BaseCommand = require('../base-command.js')
4+
const BaseCommand = require('../base-cmd.js')
55

66
class AddUser extends BaseCommand {
77
static description = 'Add a registry user account'

lib/commands/cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const pacote = require('pacote')
33
const fs = require('fs/promises')
44
const { join } = require('path')
55
const semver = require('semver')
6-
const BaseCommand = require('../base-command.js')
6+
const BaseCommand = require('../base-cmd.js')
77
const npa = require('npm-package-arg')
88
const jsonParse = require('json-parse-even-better-errors')
99
const localeCompare = require('@isaacs/string-locale-compare')('en')

lib/commands/completion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const Npm = require('../npm.js')
3636
const { definitions, shorthands } = require('@npmcli/config/lib/definitions')
3737
const { commands, aliases, deref } = require('../utils/cmd-list.js')
3838
const { isWindowsShell } = require('../utils/is-windows.js')
39-
const BaseCommand = require('../base-command.js')
39+
const BaseCommand = require('../base-cmd.js')
4040

4141
const fileExists = (file) => fs.stat(file).then(s => s.isFile()).catch(() => false)
4242

lib/commands/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const localeCompare = require('@isaacs/string-locale-compare')('en')
66
const pkgJson = require('@npmcli/package-json')
77
const { defaults, definitions } = require('@npmcli/config/lib/definitions')
88
const { log, output } = require('proc-log')
9-
const BaseCommand = require('../base-command.js')
9+
const BaseCommand = require('../base-cmd.js')
1010

1111
// These are the configs that we can nerf-dart. Not all of them currently even
1212
// *have* config definitions so we have to explicitly validate them here

lib/commands/deprecate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const npa = require('npm-package-arg')
44
const semver = require('semver')
55
const getIdentity = require('../utils/get-identity.js')
66
const libaccess = require('libnpmaccess')
7-
const BaseCommand = require('../base-command.js')
7+
const BaseCommand = require('../base-cmd.js')
88

99
class Deprecate extends BaseCommand {
1010
static description = 'Deprecate a version of a package'

lib/commands/diff.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const pacote = require('pacote')
66
const pickManifest = require('npm-pick-manifest')
77
const { log, output } = require('proc-log')
88
const pkgJson = require('@npmcli/package-json')
9-
const BaseCommand = require('../base-command.js')
9+
const BaseCommand = require('../base-cmd.js')
1010

1111
class Diff extends BaseCommand {
1212
static description = 'The registry diff command'

lib/commands/dist-tag.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const semver = require('semver')
44
const { log, output } = require('proc-log')
55
const otplease = require('../utils/otplease.js')
66
const pkgJson = require('@npmcli/package-json')
7-
const BaseCommand = require('../base-command.js')
7+
const BaseCommand = require('../base-cmd.js')
88

99
class DistTag extends BaseCommand {
1010
static description = 'Modify package distribution tags'

0 commit comments

Comments
 (0)