Skip to content

Commit

Permalink
chore: better bin name and error reproting, removing todo
Browse files Browse the repository at this point in the history
  • Loading branch information
Mila Votradovec committed Aug 9, 2018
1 parent e48b713 commit c04aeee
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@ inspect.buildDepTreeFromFiles('./', 'package.json', 'package-lock.json')
.then((tree) => {
console.log(JSON.stringify(tree));
})
.catch((e) => {
console.log(e);
});
.catch(console.error);
1 change: 0 additions & 1 deletion lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@ export function buildDepTreeFromFiles(root, targetFilePath, lockFilePath, option
if (!root || !lockFilePath || !lockFilePath) {
throw new Error('Missing required parameters for parseLockFile()');
}
// TODO: validate only valid options were passed in

const targetFileFullPath = path.resolve(root, targetFilePath);
const lockFileFullPath = path.resolve(root, lockFilePath);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "Generate a dep tree given a lockfile",
"main": "dist/lib/index.js",
"bin": {
"parse": "./bin/index.js"
"parse-nodejs-lockfile": "./bin/index.js"
},
"scripts": {
"test": "npm run lint && npm run unit-test",
Expand Down

0 comments on commit c04aeee

Please sign in to comment.