Skip to content

Commit

Permalink
Removed the pkginfo dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanyaker committed Dec 16, 2016
1 parent d550674 commit 7d1a28f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ readline.Interface.prototype.setPrompt = function(prompt, length) {
//
// Expose version using `pkginfo`
//
require('pkginfo')(module, 'version');
module.exports.version = require('../package.json').version;

var stdin, stdout, history = [];
var prompt = module.exports = Object.create(events.EventEmitter.prototype);
Expand Down Expand Up @@ -771,11 +771,11 @@ function convert(schema) {
if(typeof schema.message !== 'undefined'){
schema.description = schema.message;
}

if(typeof schema.warning !== 'undefined'){
schema.message = schema.warning;
}

if (typeof schema.validator === 'function') {
schema.conform = schema.validator;
} else {
Expand Down

0 comments on commit 7d1a28f

Please sign in to comment.