mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-17 05:54:19 +01:00
fix
This commit is contained in:
@@ -28,12 +28,16 @@ export default async function() {
|
||||
|
||||
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)) {
|
||||
const acceptable = acceptableLicenses.includes(info.licenses);
|
||||
if (acceptable) continue;
|
||||
if (name.startsWith(`${ignorePackageName}@`)) continue;
|
||||
if (ignorePackageNames.some((ignorePackageName) => name.startsWith(`${ignorePackageName}@`)))
|
||||
continue;
|
||||
|
||||
console.error(name);
|
||||
ok = false;
|
||||
|
||||
Reference in New Issue
Block a user