Skip to content

Commit

Permalink
use nocase: true for licenseFile (#824)
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke-zhang-04 authored Jun 2, 2021
1 parent 42908bc commit 098fbb0
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 @@ -186,7 +186,7 @@ class LicensePlugin {
pkg = pkgJson;

// Read license file, if it exists.
const licenseFile = glob.sync(path.join(dir, 'LICENSE*'))[0];
const licenseFile = glob.sync(path.join(dir, 'LICENSE*'), {nocase: true})[0];
if (licenseFile) {
pkg.licenseText = fs.readFileSync(licenseFile, 'utf-8');
}
Expand Down

0 comments on commit 098fbb0

Please sign in to comment.