nuevo-cli
Version:
19 lines (15 loc) • 387 B
JavaScript
const { Command } = require('@oclif/command')
const pkgUp = require('pkg-up')
class DirCommand extends Command {
async run () {
pkgUp().then(async (filepath) => {
const rootPath = filepath.replace('/package.json', '')
this.log(rootPath)
})
}
}
DirCommand.description = `Describe the command here
...
Extra documentation goes here
`
module.exports = DirCommand