Skip to content

Commit

Permalink
refactor: Remove pkgInfo dependency
Browse files Browse the repository at this point in the history
Signed-off-by: Anshul Agarwal <anshul.agarwal@integration.works>
  • Loading branch information
Anshul Agarwal authored and rfrm committed Apr 6, 2020
1 parent 8f88a73 commit bb2f609
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
3 changes: 2 additions & 1 deletion api.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
'use strict';

module.exports.version = require('./package.json').version;

var load = require('./lib/commands');
var log = require('db-migrate-shared').log;
require('pkginfo')(module, 'version'); // jshint ignore:line
var Promise;
var onComplete = load('on-complete');
var config = require('rc')('db-migrate');
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
require('pkginfo')(module, 'version'); // jshint ignore:line
module.exports.version = require('./package.json').version;

var fs = require('fs');
var path = require('path');
var log = require('db-migrate-shared').log;
Expand Down
11 changes: 3 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"mkdirp": "~0.5.0",
"optimist": "~0.6.1",
"parse-database-url": "~0.3.0",
"pkginfo": "^0.4.0",
"prompt": "^1.0.0",
"rc": "^1.2.8",
"resolve": "^1.1.6",
Expand Down

0 comments on commit bb2f609

Please sign in to comment.