Skip to content

Commit 7d1a28f

Browse files
committed
Removed the pkginfo dependency.
1 parent d550674 commit 7d1a28f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/prompt.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ readline.Interface.prototype.setPrompt = function(prompt, length) {
3232
//
3333
// Expose version using `pkginfo`
3434
//
35-
require('pkginfo')(module, 'version');
35+
module.exports.version = require('../package.json').version;
3636

3737
var stdin, stdout, history = [];
3838
var prompt = module.exports = Object.create(events.EventEmitter.prototype);
@@ -771,11 +771,11 @@ function convert(schema) {
771771
if(typeof schema.message !== 'undefined'){
772772
schema.description = schema.message;
773773
}
774-
774+
775775
if(typeof schema.warning !== 'undefined'){
776776
schema.message = schema.warning;
777777
}
778-
778+
779779
if (typeof schema.validator === 'function') {
780780
schema.conform = schema.validator;
781781
} else {

0 commit comments

Comments
 (0)