Browse Source

[core] Make exception for lz-string in checkLicense as it's actually MIT and not WTFPL

Johan Åhlén 3 years ago
parent
commit
6583e4de2f
1 changed files with 4 additions and 1 deletions
  1. 4 1
      tools/license/checkLicenses.js

+ 4 - 1
tools/license/checkLicenses.js

@@ -42,7 +42,10 @@ checker.init(
           lowerLicenses.indexOf('isc') === -1 &&
           lowerLicenses.indexOf('unlicense') === -1 &&
           lowerLicenses.indexOf('cc') === -1 &&
-          lowerLicenses.indexOf('python-2.0') === -1
+          lowerLicenses.indexOf('python-2.0') === -1 &&
+          // lz-string is marked as WTFPL license on NPM but the valid license is MIT from the github repo
+          // https://github.com/pieroxy/lz-string/issues/147
+          !packageName.startsWith('lz-string@')
         ) {
           console.warn(`Found invalid license in "${packageName}", license: "${licenses}".`);
           process.exitCode = 1;