Skip to content

Commit 6a1aae2

Browse files
committed
v0.3.0
1 parent 8e70c65 commit 6a1aae2

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

lib/index.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,15 @@
11
"use strict";
22

33
var fs = require("fs");
4-
var path = require("path");
54
var vile = require("vile");
65
var _ = require("lodash");
76
var ncu = require("npm-check-updates");
8-
var Promise = require("bluebird");
97

108
// HACK: you can see a progress bar when using ncu's lib
119
process.env.npm_config_progress = false;
1210

1311
var PKG_JSON = "package.json";
1412

15-
var cwd_pkg = function cwd_pkg() {
16-
return path.join(process.cwd(), PKG_JSON);
17-
};
18-
1913
var into_issues = function into_issues(pkg, pkg_path) {
2014
return function (upgraded) {
2115
var deps = _.get(pkg, "dependencies", []);
@@ -45,10 +39,8 @@ var ncu_opts = function ncu_opts(plugin_data, pkg_path) {
4539
};
4640
};
4741

48-
var package_json_data = function package_json_data(plugin_data) {};
49-
5042
var punish = function punish(plugin_data) {
51-
var pkg_path = _.get(plugin_data, "config.path", cwd_pkg());
43+
var pkg_path = _.get(plugin_data, "config.path", PKG_JSON);
5244
var pkg = JSON.parse(fs.readFileSync(pkg_path).toString());
5345

5446
return ncu.run(ncu_opts(plugin_data, pkg_path)).then(into_issues(pkg, pkg_path));

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vile-ncu",
3-
"version": "0.2.5",
3+
"version": "0.3.0",
44
"description": "Track outdated npm dependencies.",
55
"main": "lib/index.js",
66
"files": [

0 commit comments

Comments
 (0)