浏览代码

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

Johan Åhlén 3 年之前
父节点
当前提交
6583e4de2f
共有 1 个文件被更改,包括 4 次插入1 次删除
  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;