Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update notifier added
  • Loading branch information
HansHammel committed Jan 16, 2017
1 parent 0d03905 commit 8a73db5
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
15 changes: 14 additions & 1 deletion bin/cli.js
@@ -1,18 +1,31 @@
#!/usr/bin/env node

var path=require('path');
var updateNotifier = require('update-notifier');
var pkg = require('../package.json');
var lcc = require('../lib');

if (!module.parent) {
lcc.check(process.argv[2] || path.join(process.cwd(),'package.json'), process.argv[3] || path.join(process.cwd(),"node_modules"), function(err,passed,output){
if (err) {
console.log(err);
process.exit(1)
updateNotifier({
pkg
}).notify();
process.exit(1);
}
else if (passed)
{
console.log(output);
updateNotifier({
pkg
}).notify();
} else
{
console.log(output);
updateNotifier({
pkg
}).notify();
process.exit(1);
}
});
Expand Down
7 changes: 4 additions & 3 deletions package.json
@@ -1,11 +1,11 @@
{
"name": "license-compatibility-checker",
"version": "0.3.0",
"version": "0.3.1",
"main": "lib/index.js",
"scripts": {
"start": "node bin/cli.js",
"test": "node test/test.js",
"docdash": "node ./node_modules/jsdoc/jsdoc.js -c .jsdocrc -t ./node_modules/docdash -R README.md -r ./lib"
"docdash": "node ./node_modules/jsdoc/jsdoc.js -c .jsdocrc -t ./node_modules/docdash -R README.md -r ./lib"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -47,7 +47,8 @@
"license": "MIT",
"description": "Check npm dependencies' package.json for license compatibility (aka compliance check) with the current project based on spdx notation and naming conventions.",
"dependencies": {
"colors": "^1.1.2"
"colors": "^1.1.2",
"update-notifier": "^1.0.3"
},
"devDependencies": {
"docdash": "^0.4.0",
Expand Down

0 comments on commit 8a73db5

Please sign in to comment.