Skip to content

Commit

Permalink
fix: files verification
Browse files Browse the repository at this point in the history
  • Loading branch information
Mila Votradovec committed Aug 9, 2018
1 parent 5ae268f commit 6431a6f
Show file tree
Hide file tree
Showing 3 changed files with 5,394 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,10 @@ export function buildDepTreeFromFiles(root, targetFilePath, lockFilePath, option
const targetFileFullPath = path.resolve(root, targetFilePath);
const lockFileFullPath = path.resolve(root, lockFilePath);

if (!fs.existsSync(targetFilePath)) {
if (!fs.existsSync(targetFileFullPath)) {
throw new Error(`Target file package.json not found at location: ${targetFileFullPath}`);
}
if (!fs.existsSync(lockFilePath)) {
if (!fs.existsSync(lockFileFullPath)) {
throw new Error(`LockFile package-lock.json not found at location: ${lockFileFullPath}`);
}

Expand Down
Loading

0 comments on commit 6431a6f

Please sign in to comment.