5
0
node-binaries/node_modules/npm/lib/commands/root.js
2024-03-09 23:12:05 +08:00

13 lines
298 B
JavaScript

const BaseCommand = require('../base-command.js')
class Root extends BaseCommand {
static description = 'Display npm root'
static name = 'root'
static params = ['global']
static ignoreImplicitWorkspace = true
async exec () {
this.npm.output(this.npm.dir)
}
}
module.exports = Root