Skip to content

Commit

Permalink
fix: resolve dir as soon as possible
Browse files Browse the repository at this point in the history
  • Loading branch information
mjeanroy committed Oct 31, 2022
1 parent 68c57e0 commit 20df852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/license-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ class LicensePlugin {
this.debug(`scanning ${id}`);

// Look for the `package.json` file
let dir = path.parse(id).dir;
let dir = path.resolve(path.parse(id).dir);
let pkg = null;

const scannedDirs = [];
Expand Down

0 comments on commit 20df852

Please sign in to comment.