We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d550674 commit 7d1a28fCopy full SHA for 7d1a28f
1 file changed
lib/prompt.js
@@ -32,7 +32,7 @@ readline.Interface.prototype.setPrompt = function(prompt, length) {
32
//
33
// Expose version using `pkginfo`
34
35
-require('pkginfo')(module, 'version');
+module.exports.version = require('../package.json').version;
36
37
var stdin, stdout, history = [];
38
var prompt = module.exports = Object.create(events.EventEmitter.prototype);
@@ -771,11 +771,11 @@ function convert(schema) {
771
if(typeof schema.message !== 'undefined'){
772
schema.description = schema.message;
773
}
774
-
+
775
if(typeof schema.warning !== 'undefined'){
776
schema.message = schema.warning;
777
778
779
if (typeof schema.validator === 'function') {
780
schema.conform = schema.validator;
781
} else {
0 commit comments