This commit is contained in:
Shusui MOYATANI
2023-03-04 13:08:40 +09:00
parent f1dad9d387
commit 54b76a68a1

View File

@@ -28,12 +28,16 @@ export default async function() {
let ok = true; let ok = true;
const ignorePackageName = packageInfo.name; const ignorePackageNames = [
packageInfo.name,
'nostr-tools', // nostr-tools is licensed under public domain
];
for (const [name, info] of Object.entries(packages)) { for (const [name, info] of Object.entries(packages)) {
const acceptable = acceptableLicenses.includes(info.licenses); const acceptable = acceptableLicenses.includes(info.licenses);
if (acceptable) continue; if (acceptable) continue;
if (name.startsWith(`${ignorePackageName}@`)) continue; if (ignorePackageNames.some((ignorePackageName) => name.startsWith(`${ignorePackageName}@`)))
continue;
console.error(name); console.error(name);
ok = false; ok = false;