Fix version command

This commit is contained in:
Evan Owens 2018-03-20 11:53:45 -04:00
parent b15c848cd8
commit ab84809495
2 changed files with 1 additions and 6 deletions

View File

@ -20,9 +20,4 @@ program.Command.prototype.usageMinusWildcard = program.usageMinusWildcard = () =
program.help();
};
// Force commander to display version information.
program.Command.prototype.versionInformation = program.versionInformation = () => {
program.emit('version');
};
module.exports = program;

View File

@ -38,7 +38,7 @@ process.argv = _.map(process.argv, arg => {
program
.command('version')
.description('output your version of Strapi')
.action(program.versionInformation);
.action(() => { console.log(packageJSON.version); });
// `$ strapi console`