mirror of
https://github.com/strapi/strapi.git
synced 2026-01-06 04:03:25 +00:00
Fix version command
This commit is contained in:
parent
b15c848cd8
commit
ab84809495
@ -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;
|
||||
|
||||
@ -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`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user