mirror of
https://github.com/aljazceru/rabbit.git
synced 2025-12-17 14:04:21 +01:00
fix
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user