Skip to content

Commit

Permalink
Fix the ability to lookup source (istanbuljs#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Golov authored and Nikita Golov committed Mar 7, 2019
1 parent a161d23 commit df11388
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ NYC.prototype.instrumentAllFiles = function (input, output, cb) {
}

if (transform) {
code = transform(code, { filename: filename, relFile: inFile })
code = transform(code, {filename: path.resolve(inputDir, filename), relFile: inFile})
}

if (!output) {
Expand Down

0 comments on commit df11388

Please sign in to comment.