Skip to content

Commit c04aeee

Browse files
author
Mila Votradovec
committed
chore: better bin name and error reproting, removing todo
1 parent e48b713 commit c04aeee

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

bin/index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ inspect.buildDepTreeFromFiles('./', 'package.json', 'package-lock.json')
55
.then((tree) => {
66
console.log(JSON.stringify(tree));
77
})
8-
.catch((e) => {
9-
console.log(e);
10-
});
8+
.catch(console.error);

lib/index.ts

-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ export function buildDepTreeFromFiles(root, targetFilePath, lockFilePath, option
7878
if (!root || !lockFilePath || !lockFilePath) {
7979
throw new Error('Missing required parameters for parseLockFile()');
8080
}
81-
// TODO: validate only valid options were passed in
8281

8382
const targetFileFullPath = path.resolve(root, targetFilePath);
8483
const lockFileFullPath = path.resolve(root, lockFilePath);

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Generate a dep tree given a lockfile",
44
"main": "dist/lib/index.js",
55
"bin": {
6-
"parse": "./bin/index.js"
6+
"parse-nodejs-lockfile": "./bin/index.js"
77
},
88
"scripts": {
99
"test": "npm run lint && npm run unit-test",

0 commit comments

Comments
 (0)